mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 21:34:46 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -77,9 +77,7 @@ impl<E: EthSpec> StateCache<E> {
|
||||
if self
|
||||
.finalized_state
|
||||
.as_ref()
|
||||
.map_or(false, |finalized_state| {
|
||||
state.slot() < finalized_state.state.slot()
|
||||
})
|
||||
.is_some_and(|finalized_state| state.slot() < finalized_state.state.slot())
|
||||
{
|
||||
return Err(Error::FinalizedStateDecreasingSlot);
|
||||
}
|
||||
@@ -127,9 +125,7 @@ impl<E: EthSpec> StateCache<E> {
|
||||
if self
|
||||
.finalized_state
|
||||
.as_ref()
|
||||
.map_or(false, |finalized_state| {
|
||||
finalized_state.state_root == state_root
|
||||
})
|
||||
.is_some_and(|finalized_state| finalized_state.state_root == state_root)
|
||||
{
|
||||
return Ok(PutStateOutcome::Finalized);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user