diff --git a/src/lib.rs b/src/lib.rs index a9b2e6d..a999c01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1202,10 +1202,6 @@ impl Iterator for IterSetBits<'_, T> { None } - fn size_hint(&self) -> (usize, Option) { - self.range.size_hint() - } - fn count(self) -> usize { self.vob.count_set_bits(self.range) } @@ -1286,10 +1282,6 @@ impl Iterator for IterUnsetBits<'_, T> { None } - fn size_hint(&self) -> (usize, Option) { - self.range.size_hint() - } - fn count(self) -> usize { // This arithmetic is safe because (self.range.end - self.range.start) is the total number of bits, // and self.vob.count_set_bits() always returns a value less than or equal to that.