Fix Rust 1.88 clippy errors & execution engine tests (#7657)

Fix Rust 1.88 clippy errors.
This commit is contained in:
Jimmy Chen
2025-06-28 04:21:17 +10:00
committed by GitHub
parent 9b1f3ed9d1
commit 83cad25d98
6 changed files with 21 additions and 21 deletions

View File

@@ -700,8 +700,8 @@ impl<E: EthSpec> OperationPool<E> {
pub fn get_all_proposer_slashings(&self) -> Vec<ProposerSlashing> {
self.proposer_slashings
.read()
.iter()
.map(|(_, slashing)| slashing.as_inner().clone())
.values()
.map(|slashing| slashing.as_inner().clone())
.collect()
}
@@ -711,8 +711,8 @@ impl<E: EthSpec> OperationPool<E> {
pub fn get_all_voluntary_exits(&self) -> Vec<SignedVoluntaryExit> {
self.voluntary_exits
.read()
.iter()
.map(|(_, exit)| exit.as_inner().clone())
.values()
.map(|exit| exit.as_inner().clone())
.collect()
}

View File

@@ -86,15 +86,15 @@ impl<E: EthSpec> PersistedOperationPool<E> {
let proposer_slashings = operation_pool
.proposer_slashings
.read()
.iter()
.map(|(_, slashing)| slashing.clone())
.values()
.cloned()
.collect();
let voluntary_exits = operation_pool
.voluntary_exits
.read()
.iter()
.map(|(_, exit)| exit.clone())
.values()
.cloned()
.collect();
let bls_to_execution_changes = operation_pool