Skip to content

Commit e2b1d02

Browse files
committed
Remove Peekable from BitVec::from_bit_chunks, remove problematic
comment.
1 parent 8e3bff1 commit e2b1d02

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

crates/geo_filters/src/diff_count/bitvec.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use std::borrow::Cow;
22
use std::cmp::Ordering;
3-
use std::iter::Peekable;
43
use std::mem::{size_of, size_of_val};
54
use std::ops::{Index, Range};
65

@@ -37,13 +36,7 @@ impl BitVec<'_> {
3736
/// Takes an iterator of `BitChunk` items as input and returns the corresponding `BitVec`.
3837
/// The order of `BitChunk`s doesn't matter for this function and `BitChunk` may be hitting
3938
/// the same block. In this case, the function will simply xor them together.
40-
///
41-
/// NOTE: If the bitchunks iterator is empty, the result is NOT sized to `num_bits` but will
42-
/// be EMPTY instead.
43-
pub fn from_bit_chunks<I: Iterator<Item = BitChunk>>(
44-
chunks: Peekable<I>,
45-
num_bits: usize,
46-
) -> Self {
39+
pub fn from_bit_chunks<I: Iterator<Item = BitChunk>>(chunks: I, num_bits: usize) -> Self {
4740
let mut result = Self::default();
4841
result.resize(num_bits);
4942
let blocks = result.blocks.to_mut();

0 commit comments

Comments
 (0)