chore: make clippy happy (#8068)

This commit is contained in:
Roman Krasiuk
2024-05-03 12:18:41 +02:00
committed by GitHub
parent a590ed7ce5
commit aef1bcc435
34 changed files with 54 additions and 53 deletions

View File

@ -338,7 +338,7 @@ impl StorageInner {
///
/// This returns the poststate from execution and post-block changes, as well as the gas used.
pub(crate) fn execute<EvmConfig>(
&mut self,
&self,
block: &BlockWithSenders,
executor: &mut EVMProcessor<'_, EvmConfig>,
) -> Result<(BundleStateWithReceipts, u64), BlockExecutionError>

View File

@ -124,7 +124,7 @@ impl EngineHooksController {
}
fn poll_next_hook_inner(
&mut self,
&self,
cx: &mut Context<'_>,
hook: &mut Box<dyn EngineHook>,
args: EngineHookContext,

View File

@ -446,7 +446,7 @@ where
///
/// Returns `true` if the head needs to be updated.
fn on_head_already_canonical(
&mut self,
&self,
header: &SealedHeader,
attrs: &mut Option<EngineT::PayloadAttributes>,
) -> bool {
@ -804,7 +804,7 @@ where
/// This also updates the safe and finalized blocks in the [CanonChainTracker], if they are
/// consistent with the head block.
fn ensure_consistent_forkchoice_state(
&mut self,
&self,
state: ForkchoiceState,
) -> ProviderResult<Option<OnForkChoiceUpdated>> {
// Ensure that the finalized block, if not zero, is known and in the canonical chain