We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ebfb79 commit d213be8Copy full SHA for d213be8
1 file changed
crates/bpe/benchmarks/equivalence.rs
@@ -30,7 +30,7 @@ fn test_compare_dictionary() {
30
hugging_tokens.remove(added_token);
31
}
32
let mut hugging_tokens: Vec<_> = hugging_tokens.into_iter().collect();
33
- hugging_tokens.sort_by(|(_, a), (_, b)| a.cmp(b));
+ hugging_tokens.sort_by_key(|(_, a)| *a);
34
let hugging_tokens: Vec<_> = hugging_tokens
35
.into_iter()
36
.map(|(token, _)| token.chars().map(char_to_byte).collect())
0 commit comments