Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad committed Feb 17, 2024
1 parent bc98b92 commit 764ffe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/translator/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ pub fn translate(c: &mut Criterion) {
"Abdeel",
];
(0..100_000).for_each(|_| {
words.iter().for_each(|word| {
dictionary.insert(word.to_string(), vec![word.to_string()]);
words.into_iter().for_each(|word| {
dictionary.insert(word.to_owned(), vec![word.to_owned()]);
});
});

Expand Down

0 comments on commit 764ffe2

Please sign in to comment.