mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 04:42:34 +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:
@@ -602,7 +602,7 @@ impl<E: EthSpec> OperationPool<E> {
|
||||
})
|
||||
},
|
||||
|address_change| address_change.as_inner().clone(),
|
||||
usize::max_value(),
|
||||
usize::MAX,
|
||||
);
|
||||
changes.shuffle(&mut thread_rng());
|
||||
changes
|
||||
@@ -1343,7 +1343,7 @@ mod release_tests {
|
||||
// Set of indices covered by previous attestations in `best_attestations`.
|
||||
let mut seen_indices = BTreeSet::<u64>::new();
|
||||
// Used for asserting that rewards are in decreasing order.
|
||||
let mut prev_reward = u64::max_value();
|
||||
let mut prev_reward = u64::MAX;
|
||||
|
||||
let mut reward_cache = RewardCache::default();
|
||||
reward_cache.update(&state).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user