diff --git a/ngrok-java-native/Cargo.toml b/ngrok-java-native/Cargo.toml index 37b05ef..c5ffb2a 100644 --- a/ngrok-java-native/Cargo.toml +++ b/ngrok-java-native/Cargo.toml @@ -21,7 +21,7 @@ tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } url = "2.4.1" [lib] -crate_type = ["cdylib"] +crate-type = ["cdylib"] [patch.crates-io] jaffi_support = { git = 'https://github.com/ngrok-oss/jaffi.git', branch = 'josh/lower-jni-version' } diff --git a/ngrok-java-native/src/lib.rs b/ngrok-java-native/src/lib.rs index 8623a16..6636bc7 100644 --- a/ngrok-java-native/src/lib.rs +++ b/ngrok-java-native/src/lib.rs @@ -45,6 +45,7 @@ use ngrok::{ #[allow(clippy::all)] #[allow(dead_code)] +#[allow(mismatched_lifetime_syntaxes)] mod com_ngrok { include!(concat!(env!("OUT_DIR"), "/generated_jaffi.rs")); } @@ -178,19 +179,6 @@ trait JNIExt<'local> { .expect("cannot take native value") } - fn as_string(&self, jstr: JString) -> Option { - if jstr.is_null() { - None - } else { - Some( - self.get_env() - .get_string(jstr) - .expect("could not convert to string") - .into(), - ) - } - } - fn ngrok_exc_err< T: std::convert::From>, E: NError,