Skip to content

Commit 96104b2

Browse files
committed
ci: fix lints in ci
1 parent ff22eb4 commit 96104b2

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/src/commands/doc_test.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ pub struct DocTestCommand {}
1212

1313
impl Prepare for DocTestCommand {
1414
fn prepare<'a>(&self, sh: &'a xshell::Shell, flags: Flag) -> Vec<PreparedCommand<'a>> {
15-
let no_fail_fast = flags
16-
.contains(Flag::KEEP_GOING)
17-
.then_some("--no-fail-fast")
18-
.unwrap_or_default();
15+
let no_fail_fast = if flags.contains(Flag::KEEP_GOING) {
16+
"--no-fail-fast"
17+
} else {
18+
""
19+
};
1920

2021
vec![PreparedCommand::new::<Self>(
2122
cmd!(sh, "cargo test --workspace --doc {no_fail_fast}"),

0 commit comments

Comments
 (0)