]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mismatched_target_os_non_unix.fixed
Fix `unnecessary_cast` suggestion when taking a reference
[rust.git] / tests / ui / mismatched_target_os_non_unix.fixed
index 3ee77dcac31a0d6b3658fb4104147ab0a41402ef..f219a570e7fccc06f3c4ea88c6c0c47615d11e5e 100644 (file)
@@ -3,9 +3,6 @@
 #![warn(clippy::mismatched_target_os)]
 #![allow(unused)]
 
-#[cfg(target_os = "cloudabi")]
-fn cloudabi() {}
-
 #[cfg(target_os = "hermit")]
 fn hermit() {}
 
@@ -16,7 +13,7 @@ fn wasi() {}
 fn none() {}
 
 // list with conditions
-#[cfg(all(not(any(windows, target_os = "cloudabi")), target_os = "wasi"))]
+#[cfg(all(not(windows), target_os = "wasi"))]
 fn list() {}
 
 // windows is a valid target family, should be ignored