mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Rust 1.84 lints (#6781)
* Fix few lints * Fix remaining lints * Use fully qualified syntax
This commit is contained in:
@@ -910,7 +910,7 @@ where
|
||||
.forkchoice_update_parameters();
|
||||
if params
|
||||
.head_hash
|
||||
.map_or(false, |hash| hash != ExecutionBlockHash::zero())
|
||||
.is_some_and(|hash| hash != ExecutionBlockHash::zero())
|
||||
{
|
||||
// Spawn a new task to update the EE without waiting for it to complete.
|
||||
let inner_chain = beacon_chain.clone();
|
||||
|
||||
@@ -197,7 +197,7 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
|
||||
);
|
||||
|
||||
let speed = speedo.slots_per_second();
|
||||
let display_speed = speed.map_or(false, |speed| speed != 0.0);
|
||||
let display_speed = speed.is_some_and(|speed| speed != 0.0);
|
||||
|
||||
if display_speed {
|
||||
info!(
|
||||
@@ -233,7 +233,7 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
|
||||
);
|
||||
|
||||
let speed = speedo.slots_per_second();
|
||||
let display_speed = speed.map_or(false, |speed| speed != 0.0);
|
||||
let display_speed = speed.is_some_and(|speed| speed != 0.0);
|
||||
|
||||
if display_speed {
|
||||
info!(
|
||||
@@ -339,9 +339,7 @@ async fn bellatrix_readiness_logging<T: BeaconChainTypes>(
|
||||
.message()
|
||||
.body()
|
||||
.execution_payload()
|
||||
.map_or(false, |payload| {
|
||||
payload.parent_hash() != ExecutionBlockHash::zero()
|
||||
});
|
||||
.is_ok_and(|payload| payload.parent_hash() != ExecutionBlockHash::zero());
|
||||
|
||||
let has_execution_layer = beacon_chain.execution_layer.is_some();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user