Skip to content

Commit

Permalink
perf(TransitionAccount): remove unneeded clone (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-rise authored Nov 20, 2024
1 parent dc4d38f commit 1e73c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/database/src/states/transition_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl TransitionAccount {
/// Update new values of transition. Don't override old values.
/// Both account info and old storages need to be left intact.
pub fn update(&mut self, other: Self) {
self.info.clone_from(&other.info);
self.info = other.info;
self.status = other.status;

// if transition is from some to destroyed drop the storage.
Expand Down

0 comments on commit 1e73c08

Please sign in to comment.