diff --git a/extensions/tokenizers/rust/src/models/mod.rs b/extensions/tokenizers/rust/src/models/mod.rs index a4db801bb52..b915f922982 100644 --- a/extensions/tokenizers/rust/src/models/mod.rs +++ b/extensions/tokenizers/rust/src/models/mod.rs @@ -124,7 +124,8 @@ pub extern "system" fn Java_ai_djl_engine_rust_RustLibrary_loadModel<'local>( #[no_mangle] pub extern "system" fn Java_ai_djl_engine_rust_RustLibrary_deleteModel<'local>( - _env: JObject, + _: JNIEnv, + _: JObject, handle: jlong, ) { drop_handle::>(handle);