From 678c923f527f8836e8f33f92d3a3a63a1b016afe Mon Sep 17 00:00:00 2001 From: Lokathor Date: Tue, 6 Feb 2024 19:50:43 -0700 Subject: [PATCH] Closes https://github.com/Lokathor/bytemuck/issues/224, the Nightly feature name changed. --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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.