Skip to content

Commit

Permalink
fix: clippy issues in perf (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtguibas authored Oct 17, 2024
1 parent 5f31601 commit 143378d
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions crates/perf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,16 @@ fn main() {
let (_, verify_core_duration) =
time_operation(|| prover.verify(&core_proof.proof, &vk));

let (compress_proof, compress_duration) =
time_operation(|| prover.compress(&vk, core_proof, stdin.proofs, opts).unwrap());
let (compress_proof, compress_duration) = time_operation(|| {
prover
.compress(
&vk,
core_proof,
stdin.proofs.iter().map(|(proof, _)| proof.clone()).collect(),
opts,
)
.unwrap()
});

let (_, verify_compressed_duration) =
time_operation(|| prover.verify_compressed(&compress_proof, &vk));
Expand Down Expand Up @@ -118,8 +126,15 @@ fn main() {
prover.verify(&core_proof.proof, &vk).expect("Proof verification failed")
});

let (compress_proof, compress_duration) =
time_operation(|| server.compress(&vk, core_proof, stdin.proofs).unwrap());
let (compress_proof, compress_duration) = time_operation(|| {
server
.compress(
&vk,
core_proof,
stdin.proofs.iter().map(|(proof, _)| proof.clone()).collect(),
)
.unwrap()
});

let (_, verify_compressed_duration) =
time_operation(|| prover.verify_compressed(&compress_proof, &vk));
Expand Down

0 comments on commit 143378d

Please sign in to comment.