Skip to content

Commit de8cd41

Browse files
committed
resolve clippy errors
1 parent 0e4fb1d commit de8cd41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/commands/execute_block.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ where
116116
}
117117

118118
let block_numbers = (from..=to)
119-
.map(|n| NumberOrHex::Number(n))
119+
.map(NumberOrHex::Number)
120120
.collect::<Vec<_>>();
121121

122122
let hash_list = ChainApi::<(), Block::Hash, Block::Header, SignedBlock<Block>>::block_hash(
@@ -219,7 +219,7 @@ where
219219
try_runtime_feature_enabled: true,
220220
};
221221
let ext = State::Live(prev_block_live_state)
222-
.to_ext::<Block, HostFns>(&shared, &executor, None, runtime_checks)
222+
.to_ext::<Block, HostFns>(shared, executor, None, runtime_checks)
223223
.await?;
224224

225225
// Execute the desired block on top of it
@@ -250,7 +250,7 @@ where
250250
let _ = state_machine_call_with_proof::<Block, HostFns>(
251251
&ext,
252252
&mut Default::default(),
253-
&executor,
253+
executor,
254254
"TryRuntime_execute_block",
255255
&payload,
256256
full_extensions(executor.clone()),

0 commit comments

Comments
 (0)