mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-03 14:37:45 +00:00
nproc: replace num_cpus crate with thread::available_parallelism (#4352)
* nproc: replace num_cpus crate with std:🧵:available_parallelism
* nproc: unwrap Result for Windows
* nproc: if thread::available_parallelism results in err return 1
* nproc: wrap the call to available_parallelism into a function
* nproc: remove comment in the wrong place
* nproc: fix style violation
* nproc: fix comment, refers to the new function
This commit is contained in:
parent
e8af2a1e67
commit
04b6d806a2
3 changed files with 16 additions and 9 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -2807,7 +2807,6 @@ version = "0.0.17"
|
|||
dependencies = [
|
||||
"clap",
|
||||
"libc",
|
||||
"num_cpus",
|
||||
"uucore",
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue