Fix available_parallelism on watchOS and visionOS

Both `sysconf` and `_SC_NPROCESSORS_ONLN` is available on all Apple platforms.
This commit is contained in:
Mads Marquart 2024-04-28 17:34:17 +02:00
parent d9c0eb8084
commit 79c6d91966

View File

@ -315,11 +315,9 @@ pub fn available_parallelism() -> io::Result<NonZero<usize>> {
target_os = "emscripten",
target_os = "fuchsia",
target_os = "hurd",
target_os = "ios",
target_os = "tvos",
target_os = "linux",
target_os = "macos",
target_os = "aix",
target_vendor = "apple",
))] {
#[allow(unused_assignments)]
#[allow(unused_mut)]