From 781f72586e8eef91725b1042e59e84714f081434 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Tue, 14 May 2024 09:37:50 -0700 Subject: [PATCH] [rust] Fixes compile warnings (#3189) --- extensions/tokenizers/rust/src/models/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/tokenizers/rust/src/models/mod.rs b/extensions/tokenizers/rust/src/models/mod.rs index 7f504dc997b..a4db801bb52 100644 --- a/extensions/tokenizers/rust/src/models/mod.rs +++ b/extensions/tokenizers/rust/src/models/mod.rs @@ -15,6 +15,7 @@ use serde::Deserialize; use std::path::PathBuf; pub(crate) trait Model { + #[allow(dead_code)] fn is_padded(&self) -> bool; fn get_input_names(&self) -> Vec; @@ -123,8 +124,7 @@ 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>( - mut env: JNIEnv, - _: JObject, + _env: JObject, handle: jlong, ) { drop_handle::>(handle);