Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
preston-evans98 committed Sep 30, 2023
1 parent b6c9ae0 commit 8dad660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/demo-prover/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ use std::os::unix::process::ExitStatusExt;
use std::process::{Command, ExitStatus};
fn main() {
let is_risczero_installed = Command::new("cargo")
.args(&["risczero", "help"])
.args(["risczero", "help"])
.status()
.unwrap_or(ExitStatus::from_raw(1)); // If we can't execute the command, assume risczero isn't installed since duplicate install attempts are no-ops.

if !is_risczero_installed.success() {
// If installation fails, just exit silently. The user can try again.
let _ = Command::new("cargo")
.args(&["install", "cargo-risczero"])
.args(["install", "cargo-risczero"])
.status();
}
}

0 comments on commit 8dad660

Please sign in to comment.