diff --git a/src/lib.rs b/src/lib.rs index fb99c34..68dbabf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ #![allow(clippy::uninlined_format_args)] #![cfg_attr(feature = "nightly_docs", feature(doc_cfg))] #![cfg_attr(feature = "nightly_portable_simd", feature(portable_simd))] -#![cfg_attr(feature = "nightly_stdsimd", feature(stdsimd))] +#![cfg_attr(feature = "nightly_stdsimd", feature(stdarch_x86_avx512))] //! This crate gives small utilities for casting between plain data types. //! @@ -252,8 +252,8 @@ pub fn from_bytes_mut(s: &mut [u8]) -> &mut T { /// Reads from the bytes as if they were a `T`. /// -/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`, only sizes -/// must match. +/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`, +/// only sizes must match. /// /// ## Failure /// * If the `bytes` length is not equal to `size_of::()`. @@ -266,8 +266,8 @@ pub fn try_pod_read_unaligned( /// Reads the slice into a `T` value. /// -/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`, only sizes -/// must match. +/// Unlike [`from_bytes`], the slice doesn't need to respect alignment of `T`, +/// only sizes must match. /// /// ## Panics /// * This is like `try_pod_read_unaligned` but will panic on failure.