From 1e73c0811507a17d41c2e32b6242434ab480daa5 Mon Sep 17 00:00:00 2001 From: Hai | RISE <150876604+hai-rise@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:26:21 +0700 Subject: [PATCH] perf(TransitionAccount): remove unneeded clone (#1860) --- crates/database/src/states/transition_account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/database/src/states/transition_account.rs b/crates/database/src/states/transition_account.rs index a8f98ab835..a2838ad8cd 100644 --- a/crates/database/src/states/transition_account.rs +++ b/crates/database/src/states/transition_account.rs @@ -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.