From 4c8350864c9781c9533d9fe0477b7a27a60add71 Mon Sep 17 00:00:00 2001 From: Deep Vora Date: Thu, 25 Jul 2024 08:43:12 -0500 Subject: [PATCH] chore: satisfy `clippy::collapsible_else_if` --- xtask/src/test.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xtask/src/test.rs b/xtask/src/test.rs index c5b378da1..fd2379daa 100644 --- a/xtask/src/test.rs +++ b/xtask/src/test.rs @@ -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");