Skip to content

Commit

Permalink
move
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Nov 29, 2023
1 parent 14bf7a1 commit 4d989f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/polars-core/src/chunked_array/ops/arity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ impl<A1, A2, R, T: FnMut(A1, A2) -> R> BinaryFnMut<A1, A2> for T {
impl<T: PolarsDataType> ChunkedArray<T> {
/// Get an iterator over the values of all chunks.
fn downcast_iter_values(&self) -> impl Iterator<Item = Option<T::Physical<'_>>> {
self.downcast_iter().flat_map(move |arr| arr.iter())
self.downcast_iter().flat_map(|arr| arr.iter())
}

/// Get an iterator over the values of all chunks ignoring validity.
fn downcast_iter_values_unchecked(&self) -> impl Iterator<Item = T::Physical<'_>> {
self.downcast_iter().flat_map(move |arr| arr.values_iter())
self.downcast_iter().flat_map(|arr| arr.values_iter())
}
}

Expand Down

0 comments on commit 4d989f4

Please sign in to comment.