Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Sep 4, 2023
1 parent 9aab096 commit b235f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokenizers/src/tokenizer/added_vocabulary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl AddedVocabulary {
.values()
.cloned()
.max()
.map_or(model.get_vocab_size() as u32, |max| max.clone() + 1)
.map_or(model.get_vocab_size() as u32, |max| max + 1)
};
// Make sure we modify the previous entry
self.added_tokens_map
Expand Down

0 comments on commit b235f85

Please sign in to comment.