From c67d24b95d8c969ccaece2651ced03bc02bc19c9 Mon Sep 17 00:00:00 2001 From: clearloop <26088946+clearloop@users.noreply.github.com> Date: Tue, 19 Dec 2023 08:57:51 +0800 Subject: [PATCH] chore(gcli): make clippy happy --- gcli/tests/common/app.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gcli/tests/common/app.rs b/gcli/tests/common/app.rs index 854337f78d3..7f98cb72251 100644 --- a/gcli/tests/common/app.rs +++ b/gcli/tests/common/app.rs @@ -30,14 +30,13 @@ use std::{ fn demo_messager() -> Result { let path = PathBuf::from(env::bin("demo_messager")); - if !path.exists() { - if !Command::new("cargo") - .args(&["build", "-p", "demo-messager", "--features", "gcli"]) + if !path.exists() + && !Command::new("cargo") + .args(["build", "-p", "demo-messager", "--features", "gcli"]) .status()? .success() - { - return Err(anyhow!("Failed to build demo-messager with feature gcli")); - } + { + return Err(anyhow!("Failed to build demo-messager with feature gcli")); } Ok(path)