mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Rust 1.85 lints (#7019)
N/A 2 changes: 1. Replace Option::map_or(true, ...) with is_none_or(...) 2. Remove unnecessary `Into::into` blocks where the type conversion is apparent from the types
This commit is contained in:
@@ -767,7 +767,7 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
|
||||
// Disabling an already disabled validator *with no other changes* is a
|
||||
// no-op.
|
||||
(Some(false), None)
|
||||
if body.enabled.map_or(true, |enabled| !enabled)
|
||||
if body.enabled.is_none_or(|enabled| !enabled)
|
||||
&& body.gas_limit.is_none()
|
||||
&& body.builder_boost_factor.is_none()
|
||||
&& body.builder_proposals.is_none()
|
||||
|
||||
Reference in New Issue
Block a user