mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +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:
@@ -721,10 +721,10 @@ fn eth1_logging<T: BeaconChainTypes>(beacon_chain: &BeaconChain<T>, log: &Logger
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the peer count, returning something helpful if it's `usize::max_value` (effectively a
|
||||
/// Returns the peer count, returning something helpful if it's `usize::MAX` (effectively a
|
||||
/// `None` value).
|
||||
fn peer_count_pretty(peer_count: usize) -> String {
|
||||
if peer_count == usize::max_value() {
|
||||
if peer_count == usize::MAX {
|
||||
String::from("--")
|
||||
} else {
|
||||
format!("{}", peer_count)
|
||||
@@ -824,7 +824,7 @@ impl Speedo {
|
||||
|
||||
/// Returns the average of the speeds between each observation.
|
||||
///
|
||||
/// Does not gracefully handle slots that are above `u32::max_value()`.
|
||||
/// Does not gracefully handle slots that are above `u32::MAX`.
|
||||
pub fn slots_per_second(&self) -> Option<f64> {
|
||||
let speeds = self
|
||||
.0
|
||||
|
||||
Reference in New Issue
Block a user