[router] Fix all unused_qualifications (#11341)

This commit is contained in:
Chang Su
2025-10-08 13:55:27 -07:00
committed by GitHub
parent a65ca73911
commit a1080b72a0
12 changed files with 40 additions and 42 deletions

View File

@@ -42,7 +42,7 @@ pub struct Tokenizer(Arc<dyn traits::Tokenizer>);
impl Tokenizer {
/// Create a tokenizer from a file path
pub fn from_file(file_path: &str) -> Result<Tokenizer> {
Ok(Tokenizer(factory::create_tokenizer_from_file(file_path)?))
Ok(Tokenizer(create_tokenizer_from_file(file_path)?))
}
/// Create a tokenizer from a file path with an optional chat template
@@ -50,7 +50,7 @@ impl Tokenizer {
file_path: &str,
chat_template_path: Option<&str>,
) -> Result<Tokenizer> {
Ok(Tokenizer(factory::create_tokenizer_with_chat_template(
Ok(Tokenizer(create_tokenizer_with_chat_template(
file_path,
chat_template_path,
)?))