Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Remove unnecessary cloning in overwrite_with (#8580)
Browse files Browse the repository at this point in the history
* Remove unnecessary cloning in overwrite_with

* Remove into_iter
  • Loading branch information
sorpaas authored and rphmeier committed May 9, 2018
1 parent cb7ad23 commit cddc33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethcore/src/state/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ impl Account {
self.address_hash = other.address_hash;
let mut cache = self.storage_cache.borrow_mut();
for (k, v) in other.storage_cache.into_inner() {
cache.insert(k.clone() , v.clone()); //TODO: cloning should not be required here
cache.insert(k, v);
}
self.storage_changes = other.storage_changes;
}
Expand Down

0 comments on commit cddc33b

Please sign in to comment.