Re-add missing #[must_use]

This commit is contained in:
Caleb Zulawski 2023-05-21 14:00:48 -04:00
parent c0b7df522f
commit 0315db3cc1

View File

@ -266,6 +266,7 @@ impl<const N: usize> Swizzle<1, N> for Splat {
/// let v = u32x4::from_slice(&source); /// let v = u32x4::from_slice(&source);
/// assert_eq!(v.as_array(), &[1, 2, 3, 4]); /// assert_eq!(v.as_array(), &[1, 2, 3, 4]);
/// ``` /// ```
#[must_use]
#[inline] #[inline]
#[track_caller] #[track_caller]
pub const fn from_slice(slice: &[T]) -> Self { pub const fn from_slice(slice: &[T]) -> Self {