From 764ffe20bc36399831300520cfdfb7a0b5a83fa2 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Sat, 17 Feb 2024 22:54:19 +0100 Subject: [PATCH] update --- engine/translator/benches/bench.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/translator/benches/bench.rs b/engine/translator/benches/bench.rs index d87abe8..a4d8bae 100644 --- a/engine/translator/benches/bench.rs +++ b/engine/translator/benches/bench.rs @@ -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()]); }); });