mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
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:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user