mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +00:00
Address clippy lints in tree-states (#4414)
* Address some clippy lints * Box errors to fix error size lint * Add Default impl for Validator * Address more clippy lints * Re-implement `check_state_diff` * Fix misc test compile errors
This commit is contained in:
@@ -1249,7 +1249,7 @@ mod release_tests {
|
||||
// Each validator will have a multiple of 1_000_000_000 wei.
|
||||
// Safe from overflow unless there are about 18B validators (2^64 / 1_000_000_000).
|
||||
for i in 0..state.validators().len() {
|
||||
state.validators_mut()[i].effective_balance = 1_000_000_000 * i as u64;
|
||||
state.validators_mut().get_mut(i).unwrap().effective_balance = 1_000_000_000 * i as u64;
|
||||
}
|
||||
|
||||
let num_validators = num_committees
|
||||
|
||||
Reference in New Issue
Block a user