mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +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:
@@ -685,7 +685,7 @@ mod test {
|
||||
fn get_eth1_data(i: u64) -> Eth1Data {
|
||||
Eth1Data {
|
||||
block_hash: Hash256::from_low_u64_be(i),
|
||||
deposit_root: Hash256::from_low_u64_be(u64::max_value() - i),
|
||||
deposit_root: Hash256::from_low_u64_be(u64::MAX - i),
|
||||
deposit_count: i,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2068,7 +2068,7 @@ pub fn timestamp_now() -> Duration {
|
||||
}
|
||||
|
||||
fn u64_to_i64(n: impl Into<u64>) -> i64 {
|
||||
i64::try_from(n.into()).unwrap_or(i64::max_value())
|
||||
i64::try_from(n.into()).unwrap_or(i64::MAX)
|
||||
}
|
||||
|
||||
/// Returns the delay between the start of `block.slot` and `seen_timestamp`.
|
||||
|
||||
Reference in New Issue
Block a user