mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -1254,11 +1254,7 @@ pub fn find_reorg_slot<E: EthSpec>(
|
||||
($state: ident, $block_root: ident) => {
|
||||
std::iter::once(Ok(($state.slot(), $block_root)))
|
||||
.chain($state.rev_iter_block_roots(spec))
|
||||
.skip_while(|result| {
|
||||
result
|
||||
.as_ref()
|
||||
.map_or(false, |(slot, _)| *slot > lowest_slot)
|
||||
})
|
||||
.skip_while(|result| result.as_ref().is_ok_and(|(slot, _)| *slot > lowest_slot))
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user