about summary refs log tree commit diff
path: root/library/stdarch/crates/std_detect
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2023-10-30 13:17:22 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2023-10-31 02:20:17 +0100
commit4bfd9935f77c7cd7023ce345815a3c67d2818fc2 (patch)
treebf99a49b8e9e9544413148f2b263735fdcb9b9f3 /library/stdarch/crates/std_detect
parent936583f12c53330e6f1e5f750f5ea55e91ec6889 (diff)
downloadrust-4bfd9935f77c7cd7023ce345815a3c67d2818fc2.tar.gz
rust-4bfd9935f77c7cd7023ce345815a3c67d2818fc2.zip
Simplify a `cfg`
Diffstat (limited to 'library/stdarch/crates/std_detect')
-rw-r--r--library/stdarch/crates/std_detect/tests/cpu-detection.rs4
1 files 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 8d551fc2cb7..1a3acfaaffa 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"));