From 2b32732d0f64a27560c9c4ca15e89bc454c482da Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Sat, 22 Apr 2023 18:22:04 -0700 Subject: [PATCH] Do not construct Simd --- crates/core_simd/src/vector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index ef67fcfeee6..106f1965959 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -830,7 +830,7 @@ fn as_mut(&mut self) -> &mut [T] { T: SimdElement, { fn from(array: [T; N]) -> Self { - Self(array) + Self::from_array(array) } }