Skip to content

Commit

Permalink
Fix conditional compilation directive
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpane authored and folkertdev committed Jan 7, 2025
1 parent dfc4d51 commit ff9e805
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zlib-rs/src/deflate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff9e805

Please sign in to comment.