mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +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:
@@ -65,7 +65,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
.zip(sync_aggregate.sync_committee_bits.iter())
|
||||
{
|
||||
let participant_balance = balances
|
||||
.get_mut(&validator_index)
|
||||
.get_mut(validator_index)
|
||||
.ok_or(BeaconChainError::SyncCommitteeRewardsSyncError)?;
|
||||
|
||||
if participant_bit {
|
||||
|
||||
Reference in New Issue
Block a user