chore: remove unnecessary clone (#12455)

This commit is contained in:
malik
2024-11-11 19:12:24 +01:00
committed by GitHub
parent eccff7d24b
commit 2f8a2f0fbb

View File

@@ -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();