Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Remove unneeded clone in merkel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agunde406 committed Jul 21, 2023
1 parent 6d7b844 commit 7a29d17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libsawtooth/tests/state/merkle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -449,10 +449,10 @@ fn test_merkle_trie_update_same_address_space_with_no_children<M>(
// 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
Expand Down

0 comments on commit 7a29d17

Please sign in to comment.