From 0315db3cc183994545a29faeff8dbe944257fc91 Mon Sep 17 00:00:00 2001 From: Caleb Zulawski Date: Sun, 21 May 2023 14:00:48 -0400 Subject: [PATCH] Re-add missing #[must_use] --- crates/core_simd/src/vector.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/core_simd/src/vector.rs b/crates/core_simd/src/vector.rs index 475b7533a8b..b1be2a2a114 100644 --- a/crates/core_simd/src/vector.rs +++ b/crates/core_simd/src/vector.rs @@ -266,6 +266,7 @@ impl Swizzle<1, N> for Splat { /// let v = u32x4::from_slice(&source); /// assert_eq!(v.as_array(), &[1, 2, 3, 4]); /// ``` + #[must_use] #[inline] #[track_caller] pub const fn from_slice(slice: &[T]) -> Self {