Simplify a cfg

This commit is contained in:
Eduardo Sánchez Muñoz 2023-10-30 13:17:22 +01:00 committed by Amanieu d'Antras
parent 936583f12c
commit 4bfd9935f7

View file

@ -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"));