Skip to content

Commit

Permalink
fix trusted collect
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Sep 19, 2023
1 parent e93dbcd commit 5e4397b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/polars-core/src/datatypes/static_array_collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<T, A: ParameterFreeDtypeStaticArray + ArrayFromIter<T>> ArrayFromIterDtype<
I::IntoIter: TrustedLen,
{
debug_assert!(std::mem::discriminant(&dtype) == std::mem::discriminant(&A::get_dtype()));
Self::arr_from_iter_with_dtype(dtype, iter)
Self::arr_from_iter_trusted(iter)
}

#[inline(always)]
Expand All @@ -102,7 +102,7 @@ impl<T, A: ParameterFreeDtypeStaticArray + ArrayFromIter<T>> ArrayFromIterDtype<
I::IntoIter: TrustedLen,
{
debug_assert!(std::mem::discriminant(&dtype) == std::mem::discriminant(&A::get_dtype()));
Self::try_arr_from_iter_with_dtype(dtype, iter)
Self::try_arr_from_iter_trusted(iter)
}
}

Expand Down

0 comments on commit 5e4397b

Please sign in to comment.