Skip to content

Commit

Permalink
Update packages/ethereum-light-client/src/types/sync_committee.rs
Browse files Browse the repository at this point in the history
Co-authored-by: srdtrk <[email protected]>
  • Loading branch information
gjermundgaraba and srdtrk authored Dec 9, 2024
1 parent abf2ef9 commit 34df628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ethereum-light-client/src/types/sync_committee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ impl SyncAggregate {
pub fn num_sync_committe_participants(&self) -> usize {
self.sync_committee_bits
.iter()
.map(|byte| byte.count_ones() as usize)
.sum()
.map(|byte| byte.count_ones())
.sum::<u32>() as usize
}

// TODO: Unit test
Expand Down

0 comments on commit 34df628

Please sign in to comment.