From 2899da35c909e3aa998f3192a15e020f188511cd Mon Sep 17 00:00:00 2001 From: Hai Nguyen Date: Tue, 19 Nov 2024 11:33:33 +0700 Subject: [PATCH] perf(TransitionAccount): remove unneeded clone --- 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.