chore: fix clippy (#19118)

This commit is contained in:
Matthias Seitz
2025-10-18 11:22:02 +02:00
committed by GitHub
parent a8ef47d14c
commit a718752bf5
5 changed files with 5 additions and 6 deletions

View File

@@ -570,7 +570,7 @@ pub struct BlockState<N: NodePrimitives = EthPrimitives> {
/// The executed block that determines the state after this block has been executed.
block: ExecutedBlock<N>,
/// The block's parent block if it exists.
parent: Option<Arc<BlockState<N>>>,
parent: Option<Arc<Self>>,
}
impl<N: NodePrimitives> BlockState<N> {

View File

@@ -2402,7 +2402,7 @@ pub enum DiscoveryUpdate {
/// Node that was removed from the table
Removed(PeerId),
/// A series of updates
Batch(Vec<DiscoveryUpdate>),
Batch(Vec<Self>),
}
#[cfg(test)]

View File

@@ -284,9 +284,7 @@ impl<N: NetworkPrimitives> TransactionFetcher<N> {
// folds size based on expected response size and adds selected hashes to the request
// list and the other hashes to the surplus list
loop {
let Some((hash, metadata)) = hashes_from_announcement_iter.next() else { break };
for (hash, metadata) in hashes_from_announcement_iter.by_ref() {
let Some((_ty, size)) = metadata else {
unreachable!("this method is called upon reception of an eth68 announcement")
};

View File

@@ -236,6 +236,7 @@ impl EngineNodeLauncher {
info!(target: "reth::cli", "Consensus engine initialized");
#[allow(clippy::needless_continue)]
let events = stream_select!(
event_sender.new_listener().map(Into::into),
pipeline_events.map(Into::into),

View File

@@ -188,7 +188,7 @@ pub(crate) enum Scenario {
HigherNonce { onchain: u64, nonce: u64 },
Multi {
// Execute multiple test scenarios
scenario: Vec<Scenario>,
scenario: Vec<Self>,
},
}