Skip to content

Commit

Permalink
Re-add missing #[must_use]
Browse files Browse the repository at this point in the history
  • Loading branch information
calebzulawski committed May 21, 2023
1 parent c0b7df5 commit 0315db3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core_simd/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ where
/// 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 {
Expand Down

0 comments on commit 0315db3

Please sign in to comment.