From 3deac69798b368ac1643ebaa6dbaacb8c25aff4c Mon Sep 17 00:00:00 2001 From: Jack Nelson Date: Wed, 10 Jul 2024 15:40:16 -0400 Subject: [PATCH] Update sha256_hash.rs --- benches/sha256_hash.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benches/sha256_hash.rs b/benches/sha256_hash.rs index 5561e267..4c95ba89 100644 --- a/benches/sha256_hash.rs +++ b/benches/sha256_hash.rs @@ -1,4 +1,4 @@ -use criterion::{Criterion, criterion_group, criterion_main}; +use criterion::{criterion_group, criterion_main, Criterion}; use clvmr::sha2::Sha256; @@ -23,7 +23,8 @@ fn sha256_hash_benchmark(c: &mut Criterion) { let mut group = c.benchmark_group("sha256_hash"); group.bench_function("hash_benchmark", |b| { - b.iter(|| { // this figures out how many iterations to run. + b.iter(|| { + // this figures out how many iterations to run. for val in 0..MAX_VAL { for len in BYTE_LENGTHS { let bytes = gen_bytes(&val, &len);