Skip to content

Commit d213be8

Browse files
committed
Update equivalence.rs
1 parent 0ebfb79 commit d213be8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/bpe/benchmarks/equivalence.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn test_compare_dictionary() {
3030
hugging_tokens.remove(added_token);
3131
}
3232
let mut hugging_tokens: Vec<_> = hugging_tokens.into_iter().collect();
33-
hugging_tokens.sort_by(|(_, a), (_, b)| a.cmp(b));
33+
hugging_tokens.sort_by_key(|(_, a)| *a);
3434
let hugging_tokens: Vec<_> = hugging_tokens
3535
.into_iter()
3636
.map(|(token, _)| token.chars().map(char_to_byte).collect())

0 commit comments

Comments
 (0)