modified: src/lib.rs

This commit is contained in:
Michael Wain 2024-09-20 03:35:27 +03:00
parent f940571319
commit 4e6f192a51

View File

@ -32,7 +32,7 @@ pub mod android {
use self::jni::sys::{jstring};
#[no_mangle]
pub async unsafe extern fn Java_com_alterdekim_frida_FridaVPN_startClient(env: JNIEnv, _: JClass, java_pattern: JString) {
pub async unsafe extern fn Java_com_alterdekim_frida_FridaVPN_startClient(env: JNIEnv<'_>, _: JClass<'_>, java_pattern: JString<'_>) {
// Our Java companion code might pass-in "world" as a string, hence the name.
//let world = rust_greeting(env.get_string(java_pattern).expect("invalid pattern string").as_ptr());
// Retake pointer so that we can use it below and allow memory to be freed when it goes out of scope.