Skip to content

Commit

Permalink
use as ref
Browse files Browse the repository at this point in the history
  • Loading branch information
cliff0412 committed Aug 14, 2024
1 parent efbc147 commit 4b865ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/zk-por-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Execute for ZkPorCommitCommands {
ZkPorCommitCommands::Verify { global_proof_path, inclusion_proof_path } => {
let global_proof_path = PathBuf::from_str(&global_proof_path).unwrap();
let inclusion_proof_path =
inclusion_proof_path.clone().map(|p| PathBuf::from_str(&p).unwrap());
inclusion_proof_path.as_ref().map(|p| PathBuf::from_str(&p).unwrap());
verify(global_proof_path, inclusion_proof_path)
}
}
Expand Down

0 comments on commit 4b865ad

Please sign in to comment.