Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin-Ray committed Aug 23, 2024
1 parent 0cc05ff commit bada232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions benches/hash_chain_benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn hash_chain_proving_benchmark(c: &mut Criterion) {
// Configure the group
group.sample_size(10);
for &steps in &step_sizes {
group.bench_function(&format!("hash_chain_{}_steps", steps), |b| {
group.bench_function(format!("hash_chain_{}_steps", steps), |b| {
b.iter(|| {
let mut circuit = black_box(CircuitBuilder::<F, D>::new(config.clone()));
let (_, _) = <CircuitBuilder<GoldilocksField, D> as HashChain<
Expand Down Expand Up @@ -54,7 +54,7 @@ fn hash_chain_verification_benchmark(c: &mut Criterion) {
let step_sizes = [2, 4, 8, 16, 32, 64];

for &steps in &step_sizes {
group.bench_function(&format!("hash_chain_verify_{}_steps", steps), |b| {
group.bench_function(format!("hash_chain_verify_{}_steps", steps), |b| {
// Move the circuit and proof generation out of the iterated benchmark block
let mut circuit = CircuitBuilder::<F, D>::new(config.clone());
let (proof, circuit_map) = <CircuitBuilder<GoldilocksField, D> as HashChain<
Expand All @@ -73,7 +73,8 @@ fn hash_chain_verification_benchmark(c: &mut Criterion) {
C,
>>::verify(proof.clone(), &circuit_map));

black_box(verification_result.unwrap());
verification_result.unwrap();
black_box(());
});
});
}
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use env_logger::builder;
use log::info;
use plonky2::{
field::extension::Extendable,
Expand Down

0 comments on commit bada232

Please sign in to comment.