Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Jun 20, 2024
1 parent 1ff56c0 commit 3e736bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokenizers/src/models/bpe/trainer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ impl BpeTrainer {
for c in &self.initial_alphabet {
alphabet
.entry(*c)
.and_modify(|cnt| *cnt = std::usize::MAX)
.or_insert(std::usize::MAX);
.and_modify(|cnt| *cnt = usize::MAX)
.or_insert(usize::MAX);
}

let mut kept = alphabet.iter().collect::<Vec<_>>();
Expand Down

0 comments on commit 3e736bb

Please sign in to comment.