New rust lints for rustc 1.64.0 (#3602)

## Issue Addressed
fixes lints from the last rust release

## Proposed Changes
Fix the lints, most of the lints by `clippy::question-mark` are false positives in the form of https://github.com/rust-lang/rust-clippy/issues/9518 so it's allowed for now

## Additional Info
This commit is contained in:
Divma
2022-09-23 03:52:46 +00:00
parent 9bd384a573
commit bd873e7162
10 changed files with 15 additions and 16 deletions

View File

@@ -2531,7 +2531,7 @@ pub fn serve<T: BeaconChainTypes>(
|| matches!(validator_status, ValidatorStatus::Active);
// Filter out validators who are not 'active' or 'pending'.
is_active_or_pending.then(|| {
is_active_or_pending.then_some({
(
ProposerPreparationData {
validator_index: validator_index as u64,