mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 14:54:45 +00:00
Fix Rust 1.83 Clippy lints (#6629)
* Fix Rust 1.83 Clippy lints * Cargo fmt
This commit is contained in:
@@ -107,8 +107,7 @@ fn get_sync_status<E: EthSpec>(
|
||||
|
||||
// Determine how many voting periods are contained in distance between
|
||||
// now and genesis, rounding up.
|
||||
let voting_periods_past =
|
||||
(seconds_till_genesis + voting_period_duration - 1) / voting_period_duration;
|
||||
let voting_periods_past = seconds_till_genesis.div_ceil(voting_period_duration);
|
||||
|
||||
// Return the start time of the current voting period*.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user