From ff9e80571f31715356bcdc00fec7aca2eebec435 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Mon, 6 Jan 2025 13:59:59 -0800 Subject: [PATCH] Fix conditional compilation directive --- zlib-rs/src/deflate.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zlib-rs/src/deflate.rs b/zlib-rs/src/deflate.rs index 4f26be7..f796b91 100644 --- a/zlib-rs/src/deflate.rs +++ b/zlib-rs/src/deflate.rs @@ -1332,8 +1332,6 @@ pub(crate) struct State<'a> { gzindex: usize, } -#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] - #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord, Default)] #[cfg_attr(feature = "__internal-fuzz", derive(arbitrary::Arbitrary))] pub enum Strategy { @@ -4229,6 +4227,7 @@ mod test { } } + #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] mod _cache_lines { use super::State; // TODO: once zlib-rs Minimum Supported Rust Version >= 1.77, switch to core::mem::offset_of