Skip to content

Commit

Permalink
remove clone
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Jan 20, 2025
1 parent c01759f commit a10ea22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/trie/trie/src/hashed_cursor/post_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ where
{
/// Create new instance of [`HashedPostStateAccountCursor`].
pub fn new(cursor: C, post_state_accounts: HashedAccountsSorted) -> Self {
let post_state_cursor =
ForwardInMemoryCursor::new(Arc::new(post_state_accounts.accounts.clone()));
let post_state_cursor = ForwardInMemoryCursor::new(Arc::new(post_state_accounts.accounts));
let destroyed_accounts = post_state_accounts.destroyed_accounts;
Self { cursor, post_state_cursor, destroyed_accounts, last_account: None }
}
Expand Down

0 comments on commit a10ea22

Please sign in to comment.