Rust 1.79 lints (#5927)

* max_value -> MAX

* remove unnecesary closures

* a couple more max_value -> MAX

* a couple more max_value -> MAX

* Revert "a couple more max_value -> MAX"

This reverts commit 807fe7cae9.

* unused spec field -> phantom data

* ignore some dead code warnings

* update kurtosis repo location
This commit is contained in:
realbigsean
2024-06-13 19:04:30 -04:00
committed by GitHub
parent 5789db042d
commit a74098044a
34 changed files with 92 additions and 95 deletions

View File

@@ -5,6 +5,7 @@ use eth2::{Error as Eth2Error, SensitiveError};
use std::fmt;
#[derive(Debug)]
#[allow(dead_code)]
pub enum Error {
BeaconChain(BeaconChainError),
Eth2(Eth2Error),

View File

@@ -9,6 +9,7 @@ use eth2::{
};
use log::{debug, error, info, warn};
use std::collections::HashSet;
use std::marker::PhantomData;
use types::{BeaconBlockHeader, EthSpec, Hash256, SignedBeaconBlock, Slot};
use crate::updater::{get_beacon_block, get_header, get_validators};
@@ -47,7 +48,7 @@ pub struct UpdateHandler<E: EthSpec> {
pub blockprint: Option<WatchBlockprintClient>,
pub config: Config,
pub slots_per_epoch: u64,
pub spec: WatchSpec<E>,
pub _phantom: PhantomData<E>,
}
impl<E: EthSpec> UpdateHandler<E> {
@@ -84,7 +85,7 @@ impl<E: EthSpec> UpdateHandler<E> {
blockprint,
config: config.updater,
slots_per_epoch: spec.slots_per_epoch(),
spec,
_phantom: PhantomData,
})
}