From 4e6f192a5123b72068746709f625ddcc58697bc7 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Fri, 20 Sep 2024 03:35:27 +0300 Subject: [PATCH] modified: src/lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 030af52..fe62095 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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.