Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Oct 25, 2024
1 parent ae84b56 commit fea1120
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions parquet/src/arrow/arrow_reader/boolean_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ impl BooleanRowSelection {
BooleanRowSelection { selector: buffer }
}

/// Returns the number of rows in this [`BooleanRowSelection`].
pub fn len(&self) -> usize {
self.selector.len()
}

/// Returns the number of rows selected by this [`BooleanRowSelection`].
pub fn row_count(&self) -> usize {
self.selector.count_set_bits()
Expand Down Expand Up @@ -141,14 +136,14 @@ impl BooleanRowSelection {
// Ensure that 'other' has exactly as many set bits as 'self'
debug_assert_eq!(
self.row_count(),
other.len(),
other.selector.len(),
"The 'other' selection must have exactly as many set bits as 'self'."
);

if self.len() == other.len() {
if self.selector.len() == other.selector.len() {
// fast path if the two selections are the same length
// common if this is the first predicate
debug_assert_eq!(self.row_count(), self.len());
debug_assert_eq!(self.row_count(), self.selector.len());
return self.intersection(other);
}

Expand Down

0 comments on commit fea1120

Please sign in to comment.