|
1 | 1 | // SPDX-License-Identifier: Apache-2.0 |
2 | 2 | // SPDX-FileCopyrightText: Copyright the Vortex contributors |
3 | 3 |
|
4 | | -use std::ops::{BitAnd, BitOr, BitXor, Not, RangeBounds}; |
| 4 | +use std::ops::{BitAnd, BitOr, BitXor, Not, Range, RangeBounds}; |
5 | 5 |
|
6 | 6 | use crate::bit::ops::{bitwise_binary_op, bitwise_unary_op}; |
7 | 7 | use crate::bit::{ |
@@ -418,7 +418,7 @@ impl BitBuffer { |
418 | 418 | /// |
419 | 419 | /// Panics if the range is outside valid bounds of the buffer. |
420 | 420 | #[inline] |
421 | | - pub fn iter_bits<F>(&self, range: std::ops::Range<usize>, mut f: F) |
| 421 | + pub fn iter_bits<F>(&self, range: Range<usize>, mut f: F) |
422 | 422 | where |
423 | 423 | F: FnMut(usize, bool), |
424 | 424 | { |
@@ -462,14 +462,14 @@ impl BitBuffer { |
462 | 462 | /// |
463 | 463 | /// # Arguments |
464 | 464 | /// |
465 | | - /// * `range` - Bit range to iterate through in reverse (start inclusive, end exclusive) |
| 465 | + /// * `range` - Bit range to iterate through in reverse |
466 | 466 | /// * `f` - Callback function taking (bit_index, is_set) |
467 | 467 | /// |
468 | 468 | /// # Panics |
469 | 469 | /// |
470 | 470 | /// Panics if the range is outside valid bounds of the buffer. |
471 | 471 | #[inline] |
472 | | - pub fn iter_bits_reverse<F>(&self, range: std::ops::Range<usize>, mut f: F) |
| 472 | + pub fn iter_bits_reverse<F>(&self, range: Range<usize>, mut f: F) |
473 | 473 | where |
474 | 474 | F: FnMut(usize, bool), |
475 | 475 | { |
|
0 commit comments