mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Fix mistaken mut on boolean_bitfield
This commit is contained in:
@@ -62,7 +62,7 @@ impl BooleanBitfield {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Return the total number of bits set to true.
|
// Return the total number of bits set to true.
|
||||||
pub fn num_true_bits(&mut self) -> u64 {
|
pub fn num_true_bits(&self) -> u64 {
|
||||||
let mut count: u64 = 0;
|
let mut count: u64 = 0;
|
||||||
for byte in &self.vec {
|
for byte in &self.vec {
|
||||||
for bit in 0..8 {
|
for bit in 0..8 {
|
||||||
|
|||||||
Reference in New Issue
Block a user