mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +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:
@@ -147,7 +147,7 @@ pub async fn produce_blinded_block_v2<T: BeaconChainTypes>(
|
||||
.produce_block_with_verification(
|
||||
randao_reveal,
|
||||
slot,
|
||||
query.graffiti.map(Into::into),
|
||||
query.graffiti,
|
||||
randao_verification,
|
||||
None,
|
||||
BlockProductionVersion::BlindedV2,
|
||||
@@ -178,7 +178,7 @@ pub async fn produce_block_v2<T: BeaconChainTypes>(
|
||||
.produce_block_with_verification(
|
||||
randao_reveal,
|
||||
slot,
|
||||
query.graffiti.map(Into::into),
|
||||
query.graffiti,
|
||||
randao_verification,
|
||||
None,
|
||||
BlockProductionVersion::FullV2,
|
||||
|
||||
Reference in New Issue
Block a user