mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
Fix Rust 1.88 clippy errors & execution engine tests (#7657)
Fix Rust 1.88 clippy errors.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user