Skip to content

Commit

Permalink
chore: remove unnecessary clone (paradigmxyz#12455)
Browse files Browse the repository at this point in the history
malik672 authored Nov 11, 2024
1 parent eccff7d commit 2f8a2f0
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
@@ -338,7 +338,7 @@ impl CanonicalInMemoryState {
// re-insert the blocks in natural order and connect them to their parent blocks
for block in old_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();

0 comments on commit 2f8a2f0

Please sign in to comment.