mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +00:00
Updated to comply with new clippy formatting rules (#2336)
## Issue Addressed The latest version of Rust has new clippy rules & the codebase isn't up to date with them. ## Proposed Changes Small formatting changes that clippy tells me are functionally equivalent
This commit is contained in:
@@ -612,11 +612,9 @@ fn collect_valid_votes<T: EthSpec>(
|
||||
.eth1_data_votes
|
||||
.iter()
|
||||
.filter_map(|vote| {
|
||||
if let Some(block_num) = votes_to_consider.get(vote) {
|
||||
Some((vote.clone(), *block_num))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
votes_to_consider
|
||||
.get(vote)
|
||||
.map(|block_num| (vote.clone(), *block_num))
|
||||
})
|
||||
.for_each(|(eth1_data, block_number)| {
|
||||
valid_votes
|
||||
|
||||
Reference in New Issue
Block a user