From 4bfd9935f77c7cd7023ce345815a3c67d2818fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20S=C3=A1nchez=20Mu=C3=B1oz?= Date: Mon, 30 Oct 2023 13:17:22 +0100 Subject: [PATCH] Simplify a `cfg` --- library/stdarch/crates/std_detect/tests/cpu-detection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/stdarch/crates/std_detect/tests/cpu-detection.rs b/library/stdarch/crates/std_detect/tests/cpu-detection.rs index 8d551fc2cb7a..1a3acfaaffa0 100644 --- a/library/stdarch/crates/std_detect/tests/cpu-detection.rs +++ b/library/stdarch/crates/std_detect/tests/cpu-detection.rs @@ -25,7 +25,7 @@ fn all() { } #[test] -#[cfg(all(target_arch = "arm", any(target_os = "freebsd"),))] +#[cfg(all(target_arch = "arm", target_os = "freebsd"))] fn arm_freebsd() { println!("neon: {}", is_arm_feature_detected!("neon")); println!("pmull: {}", is_arm_feature_detected!("pmull")); @@ -35,7 +35,7 @@ fn arm_freebsd() { } #[test] -#[cfg(all(target_arch = "arm", any(target_os = "linux", target_os = "android"),))] +#[cfg(all(target_arch = "arm", any(target_os = "linux", target_os = "android")))] fn arm_linux() { println!("neon: {}", is_arm_feature_detected!("neon")); println!("pmull: {}", is_arm_feature_detected!("pmull"));