mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 21:34:46 +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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user