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);
/// assert_eq!(v.as_array(), &[1, 2, 3, 4]);
/// ```
#[must_use]
#[inline]
#[track_caller]
pub const fn from_slice(slice: &[T]) -> Self {