diff --git a/coprocessor/fhevm-engine/tfhe-worker/src/tfhe_worker.rs b/coprocessor/fhevm-engine/tfhe-worker/src/tfhe_worker.rs index a51ab1a2cb..e093e2dfaa 100644 --- a/coprocessor/fhevm-engine/tfhe-worker/src/tfhe_worker.rs +++ b/coprocessor/fhevm-engine/tfhe-worker/src/tfhe_worker.rs @@ -263,11 +263,8 @@ async fn query_ciphertexts<'a>( // index ciphertexts in hashmap let mut ciphertext_map: HashMap, (i16, Vec)> = HashMap::with_capacity(ciphertexts_rows.len()); - for row in &ciphertexts_rows { - let _ = ciphertext_map.insert( - row.handle.clone(), - (row.ciphertext_type, row.ciphertext.clone()), - ); + for row in ciphertexts_rows { + let _ = ciphertext_map.insert(row.handle, (row.ciphertext_type, row.ciphertext)); } Ok(ciphertext_map) }