Skip to content

Commit a469fde

Browse files
committed
Remove unneeded peekable() calls
1 parent b48eb4e commit a469fde

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

crates/geo_filters/src/diff_count.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,8 @@ mod tests {
553553
for _ in 0..1000 {
554554
expected.push_hash(rnd.next_u64());
555555
}
556-
let actual = GeoDiffCount::from_bit_chunks(
557-
expected.config.clone(),
558-
expected.bit_chunks().peekable(),
559-
);
556+
let actual =
557+
GeoDiffCount::from_bit_chunks(expected.config.clone(), expected.bit_chunks());
560558
assert_eq!(expected, actual);
561559
});
562560
}

crates/geo_filters/src/distinct_count.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ fn or<C: GeoConfig<Distinct>>(
225225

226226
GeoDistinctCount::<'static, C>::from_bit_chunks(
227227
a.config.clone(),
228-
or_bit_chunks(a.bit_chunks(), b.bit_chunks()).peekable(),
228+
or_bit_chunks(a.bit_chunks(), b.bit_chunks()),
229229
)
230230
}
231231

0 commit comments

Comments
 (0)