From 7a29d170d0f33ab7a7f1e2f9267d7c76f0f7efd8 Mon Sep 17 00:00:00 2001 From: Andrea Gunderson Date: Fri, 21 Jul 2023 12:15:08 -0500 Subject: [PATCH] Remove unneeded clone in merkel tests --- libsawtooth/tests/state/merkle/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsawtooth/tests/state/merkle/mod.rs b/libsawtooth/tests/state/merkle/mod.rs index f6bbdbcd4..1698e8431 100644 --- a/libsawtooth/tests/state/merkle/mod.rs +++ b/libsawtooth/tests/state/merkle/mod.rs @@ -333,7 +333,7 @@ where key: key_hash.to_string(), value: "2.0".as_bytes().to_vec(), }); - values.insert(key_hash.clone().to_string(), "2.0".to_string()); + values.insert(key_hash.to_string(), "2.0".to_string()); } // The first item below(e55420...89b9) shares a common prefix @@ -449,10 +449,10 @@ fn test_merkle_trie_update_same_address_space_with_no_children( // Perform some updates on the lower keys for &(_, ref key_hash) in key_hash_to_be_inserted.iter() { state_changes.push(StateChange::Set { - key: key_hash.clone().to_string(), + key: key_hash.to_string(), value: "2.0".as_bytes().to_vec(), }); - values.insert(key_hash.clone().to_string(), "2.0".to_string()); + values.insert(key_hash.to_string(), "2.0".to_string()); } // The first item below(e55420...89b9) shares a common prefix