Skip to content

Commit

Permalink
chore(gcli): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Dec 19, 2023
1 parent fc86a76 commit c67d24b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions gcli/tests/common/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ use std::{
fn demo_messager() -> Result<PathBuf> {
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)
Expand Down

0 comments on commit c67d24b

Please sign in to comment.