diff --git a/sha2/src/sha256.rs b/sha2/src/sha256.rs index ed869a16..417a51b6 100644 --- a/sha2/src/sha256.rs +++ b/sha2/src/sha256.rs @@ -6,7 +6,7 @@ cfg_if::cfg_if! { mod soft; mod x86; use x86::compress; - } else if #[cfg(all(feature = "asm", target_arch = "aarch64"))] { + } else if #[cfg(target_arch = "aarch64")] { mod soft; mod aarch64; use aarch64::compress; diff --git a/sha2/src/sha512.rs b/sha2/src/sha512.rs index 04f5079b..7d938277 100644 --- a/sha2/src/sha512.rs +++ b/sha2/src/sha512.rs @@ -6,7 +6,7 @@ cfg_if::cfg_if! { mod soft; mod x86; use x86::compress; - } else if #[cfg(all(feature = "asm", target_arch = "aarch64"))] { + } else if #[cfg(target_arch = "aarch64")] { mod soft; mod aarch64; use aarch64::compress;