diff --git a/Cargo.lock b/Cargo.lock index 257c650..d3fe02d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -312,7 +312,7 @@ dependencies = [ [[package]] name = "forte" -version = "1.0.0-alpha.3" +version = "1.0.0-dev" dependencies = [ "async-task", "atomic-wait", diff --git a/ci/src/commands/doc_test.rs b/ci/src/commands/doc_test.rs index 556a09c..e6bdaa5 100644 --- a/ci/src/commands/doc_test.rs +++ b/ci/src/commands/doc_test.rs @@ -12,10 +12,11 @@ pub struct DocTestCommand {} impl Prepare for DocTestCommand { fn prepare<'a>(&self, sh: &'a xshell::Shell, flags: Flag) -> Vec> { - let no_fail_fast = flags - .contains(Flag::KEEP_GOING) - .then_some("--no-fail-fast") - .unwrap_or_default(); + let no_fail_fast = if flags.contains(Flag::KEEP_GOING) { + "--no-fail-fast" + } else { + "" + }; vec![PreparedCommand::new::( cmd!(sh, "cargo test --workspace --doc {no_fail_fast}"),