Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Sep 4, 2021
1 parent 4e53c2e commit b16d6b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/compute/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ fn filter_nonnull_primitive<T: NativeType>(
assert_eq!(array.len(), mask.len());
let filter_count = mask.len() - mask.null_count();

let mut buffer = MutableBuffer::<T>::with_capacity(filter_count);
if let Some(validity) = array.validity() {
let mut buffer = MutableBuffer::<T>::with_capacity(filter_count);
let mut new_validity = MutableBitmap::with_capacity(filter_count);

array
Expand All @@ -53,8 +53,6 @@ fn filter_nonnull_primitive<T: NativeType>(
new_validity.into(),
)
} else {
let mut buffer = MutableBuffer::<T>::with_capacity(filter_count);

array
.values()
.iter()
Expand Down

0 comments on commit b16d6b9

Please sign in to comment.