Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clippy
Browse files Browse the repository at this point in the history
Dandandan committed Oct 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 78645a5 commit b5d1d38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arrow-select/src/take.rs
Original file line number Diff line number Diff line change
@@ -434,12 +434,13 @@ fn take_bits<I: ArrowPrimitiveType>(
bit_util::set_bit(output_slice, idx);
}
});
return BooleanBuffer::new(output_buffer.into(), 0, indices.len());
BooleanBuffer::new(output_buffer.into(), 0, indices.len())
}
None => {
return BooleanBuffer::collect_bool(len, |idx: usize| {
BooleanBuffer::collect_bool(len, |idx: usize| {
// SAFETY: idx<indices.len()
values.value(unsafe { indices.value_unchecked(idx).as_usize() })
});
})
}
}
}

0 comments on commit b5d1d38

Please sign in to comment.