Skip to content

Commit

Permalink
[rust] Fixes compile warnings (#3189)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored May 14, 2024
1 parent a435a6f commit 781f725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/tokenizers/rust/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>;
Expand Down Expand Up @@ -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::<Box<dyn Model>>(handle);
Expand Down

0 comments on commit 781f725

Please sign in to comment.