summaryrefslogtreecommitdiff
path: root/cli/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/flags.rs')
-rw-r--r--cli/flags.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index 3e63f8014..0c916ecb8 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -1683,9 +1683,8 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
if let Some(value) = matches.value_of("jobs") {
value.parse().unwrap()
} else {
- // TODO(caspervonb) when no value is given use
- // https://doc.rust-lang.org/std/thread/fn.available_concurrency.html
- 2
+ // TODO(caspervonb) drop the dependency on num_cpus when https://doc.rust-lang.org/std/thread/fn.available_concurrency.html becomes stable.
+ num_cpus::get()
}
} else {
1