From f3b2f23a1d95769082c97fc966d6eeddaea9668a Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Mon, 23 Aug 2021 18:37:02 +0800 Subject: refactor(cli/flags): use an optional non zero usize for `fail-fast` (#11804) Changes the type of the `fail_fast` flag from `Option` to `Option` as an optional value of zero isn't sound. --- cli/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 0c758e631..45afd0329 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -77,6 +77,7 @@ use std::env; use std::io::Read; use std::io::Write; use std::iter::once; +use std::num::NonZeroUsize; use std::path::PathBuf; use std::pin::Pin; use std::rc::Rc; @@ -1004,7 +1005,7 @@ async fn test_command( include: Option>, no_run: bool, doc: bool, - fail_fast: Option, + fail_fast: Option, quiet: bool, allow_none: bool, filter: Option, -- cgit v1.2.3