chore: satisfy clippy::collapsible_else_if

This commit is contained in:
Deep Vora 2024-07-25 08:43:12 -05:00 committed by Erich Gubler
parent 9972d2c18a
commit 4c8350864c

View File

@ -18,12 +18,10 @@ pub fn run_tests(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
};
let llvm_cov_nextest_flags: &[_] = if llvm_cov {
&["llvm-cov", "--no-cfg-coverage", "--no-report", "nextest"]
} else if list {
&["nextest", "list"]
} else {
if list {
&["nextest", "list"]
} else {
&["nextest", "run"]
}
&["nextest", "run"]
};
log::info!("Generating .gpuconfig file based on gpus on the system");