Skip to content

Commit

Permalink
from_trusted_len_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Apr 1, 2024
1 parent 3f38436 commit 352b997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-arrow/src/compute/temporal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ where
TimeUnit::Microsecond => timestamp_us_to_datetime,
TimeUnit::Nanosecond => timestamp_ns_to_datetime,
};
Ok(PrimitiveArray::<O>::from_iter(
Ok(PrimitiveArray::<O>::from_trusted_len_iter(
array.iter().map(|v| v.map(|x| op(func(*x)))),
))
},
Expand Down

0 comments on commit 352b997

Please sign in to comment.