Skip to content

Commit

Permalink
fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
temaniarpit27 committed Jul 29, 2024
1 parent 4198fd9 commit 21cfff3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 27 deletions.
2 changes: 1 addition & 1 deletion zero_bin/verifier/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{path::PathBuf, string};
use std::string;

use clap::{Parser, Subcommand, ValueHint};
use zero_bin_common::prover_state::cli::CliProverStateConfig;
Expand Down
21 changes: 8 additions & 13 deletions zero_bin/verifier/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,14 @@ fn main() -> Result<()> {
}
}

if args.command.is_some() {
match args.command {
Some(Command::Version {}) => {
println!(
"Evm Arithmetization package version: {}",
env::var(EVM_ARITH_VER_KEY)?
);
println!("Build Commit Hash: {}", env::var(VERGEN_RUSTC_COMMIT_HASH)?);
println!("Build Timestamp: {}", env::var(VERGEN_BUILD_TIMESTAMP)?);
return Ok(());
}
None => {}
}
if let Some(Command::Version {}) = args.command {
println!(
"Evm Arithmetization package version: {}",
env::var(EVM_ARITH_VER_KEY)?
);
println!("Build Commit Hash: {}", env::var(VERGEN_RUSTC_COMMIT_HASH)?);
println!("Build Timestamp: {}", env::var(VERGEN_BUILD_TIMESTAMP)?);
return Ok(());
}

let file = File::open(args.file_path.unwrap())?;
Expand Down
21 changes: 8 additions & 13 deletions zero_bin/worker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,14 @@ async fn main() -> Result<()> {
}
}

if args.command.is_some() {
match args.command {
Some(Command::Version {}) => {
println!(
"Evm Arithmetization package version: {}",
env::var(EVM_ARITH_VER_KEY)?
);
println!("Build Commit Hash: {}", env::var(VERGEN_RUSTC_COMMIT_HASH)?);
println!("Build Timestamp: {}", env::var(VERGEN_BUILD_TIMESTAMP)?);
return Ok(());
}
None => {}
}
if let Some(Command::Version {}) = args.command {
println!(
"Evm Arithmetization package version: {}",
env::var(EVM_ARITH_VER_KEY)?
);
println!("Build Commit Hash: {}", env::var(VERGEN_RUSTC_COMMIT_HASH)?);
println!("Build Timestamp: {}", env::var(VERGEN_BUILD_TIMESTAMP)?);
return Ok(());
}

args.prover_state_config
Expand Down

0 comments on commit 21cfff3

Please sign in to comment.