Simplify a cfg
This commit is contained in:
parent
936583f12c
commit
4bfd9935f7
1 changed files with 2 additions and 2 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue