diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-08-23 18:35:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 12:35:38 +0200 |
commit | 198699fabae37fb3f1edd6aa058ea050cc43bb19 (patch) | |
tree | 712f8d68c598bacd2a64d98014af78b27d013606 /cli/main.rs | |
parent | 856884b2df9708159f17eeb5a1abc60530979bb6 (diff) |
fix(cli/flags): require a non zero usize for concurrent jobs (#11802)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 0e75257bd..0c758e631 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -1,6 +1,7 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. mod ast; +use std::num::NonZeroUsize; mod auth_tokens; mod checksum; mod colors; @@ -1008,7 +1009,7 @@ async fn test_command( allow_none: bool, filter: Option<String>, shuffle: Option<u64>, - concurrent_jobs: usize, + concurrent_jobs: NonZeroUsize, ) -> Result<(), AnyError> { if let Some(ref coverage_dir) = flags.coverage_dir { std::fs::create_dir_all(&coverage_dir)?; |