Skip to content

Commit

Permalink
do check
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Feb 15, 2022
1 parent 7f59d2e commit 0bec1a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arrow/src/array/array_primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ impl<T: ArrowPrimitiveType> PrimitiveArray<T> {
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a,
) -> impl Iterator<Item = Option<T::Native>> + 'a {
indexes.map(|opt_index| {
opt_index.map(|index| unsafe { self.value_unchecked(index) })
})
indexes.map(|opt_index| opt_index.map(|index| self.value(index)))
}
}

Expand Down

0 comments on commit 0bec1a1

Please sign in to comment.