chore: remove unessarcy clone (#12463)

This commit is contained in:
malik
2024-11-12 12:48:39 +01:00
committed by GitHub
parent 179aa04707
commit 6c1833de31

View File

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