diff --git a/gix-features/tests/hash.rs b/gix-features/tests/hash.rs index 035e475ad47..ecc321bffa7 100644 --- a/gix-features/tests/hash.rs +++ b/gix-features/tests/hash.rs @@ -6,14 +6,8 @@ fn size_of_sha1() { assert_eq!(std::mem::size_of::(), 96) } -#[cfg(all(feature = "fast-sha1", target_arch = "x86"))] +#[cfg(feature = "fast-sha1")] #[test] fn size_of_sha1() { - assert_eq!(std::mem::size_of::(), 96) -} - -#[cfg(all(feature = "fast-sha1", not(target_arch = "x86")))] -#[test] -fn size_of_sha1() { - assert_eq!(std::mem::size_of::(), 104) + assert_eq!(std::mem::size_of::(), if cfg!(target_arch = "x86") { 96 } else { 104 }) }