From debe99f2d104a6bad1696395d9e4020cea38b2c2 Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Mon, 13 Jan 2025 15:36:48 +0100 Subject: [PATCH] fix: make things compile on aarch64 again Make things mutable and also silence a Clippy warning. --- fr32/src/reader.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fr32/src/reader.rs b/fr32/src/reader.rs index 78ea9239b..76148e823 100644 --- a/fr32/src/reader.rs +++ b/fr32/src/reader.rs @@ -76,8 +76,9 @@ impl Fr32Reader { // Safety: This is safe because the struct/data is aligned on // a 16 byte boundary and can therefore be casted from u128 // to u8 without alignment safety issues. + #[allow(clippy::cast_slice_different_sizes)] unsafe { - &mut (*(&self.in_buffer.0 as *const [u8] as *mut [u128])) + &mut (*(&mut self.in_buffer.0 as *const [u8] as *mut [u128])) } #[cfg(not(target_arch = "aarch64"))] self.in_buffer.0.as_slice_of::().unwrap()