Skip to content

Commit

Permalink
chore: remove unessarcy clone (#12463)
Browse files Browse the repository at this point in the history
  • Loading branch information
malik672 authored Nov 12, 2024
1 parent 179aa04 commit 6c1833d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/chain-state/src/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl CanonicalInMemoryState {
// insert the new blocks
for block in new_blocks {
let parent = blocks.get(&block.block().parent_hash).cloned();
let block_state = BlockState::with_parent(block.clone(), parent);
let block_state = BlockState::with_parent(block, parent);
let hash = block_state.hash();
let number = block_state.number();

Expand Down

0 comments on commit 6c1833d

Please sign in to comment.