Skip to content

Commit b7e9c99

Browse files
committed
fix(ci): remove redundant closure in python_tokenizer.rs for Rust 1.100 clippy
1 parent a3ecb64 commit b7e9c99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/python_tokenizer.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl PyAutoTokenizer {
433433
crate::tokenizer::json::Json::parse(&text).map_err(err)
434434
};
435435
let msgs = to_json(&messages)?;
436-
let tools_j = tools.as_ref().map(|t| to_json(t)).transpose()?;
436+
let tools_j = tools.as_ref().map(&to_json).transpose()?;
437437
let mut extra: Vec<(String, crate::tokenizer::json::Json)> = Vec::new();
438438
if let Some(k) = kwargs {
439439
for (key, val) in k.iter() {

0 commit comments

Comments
 (0)