Use target_vendor = "apple" instead of target_os = "..."

This commit is contained in:
Mads Marquart
2024-04-28 18:22:37 +02:00
parent cb49406457
commit d9c0eb8084
18 changed files with 74 additions and 336 deletions

View File

@@ -12,11 +12,6 @@ pub fn hashmap_random_keys() -> (u64, u64) {
#[cfg(all(
unix,
not(target_os = "macos"),
not(target_os = "ios"),
not(target_os = "tvos"),
not(target_os = "watchos"),
not(target_os = "visionos"),
not(target_os = "openbsd"),
not(target_os = "netbsd"),
not(target_os = "fuchsia"),
@@ -24,6 +19,7 @@ pub fn hashmap_random_keys() -> (u64, u64) {
not(target_os = "vxworks"),
not(target_os = "emscripten"),
not(target_os = "vita"),
not(target_vendor = "apple"),
))]
mod imp {
use crate::fs::File;