From 9f3f0d249b189170fcd3645305a9f0cb24d0945f Mon Sep 17 00:00:00 2001 From: Don MacAskill Date: Sat, 7 Sep 2024 11:38:33 -0700 Subject: [PATCH] Apply formatting suggestions --- benches/benchmark.rs | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/benches/benchmark.rs b/benches/benchmark.rs index 2655b1f..de4850f 100644 --- a/benches/benchmark.rs +++ b/benches/benchmark.rs @@ -24,15 +24,19 @@ fn bench_crc(c: &mut Criterion) { digest.finalize() }) }); - group.bench_with_input(BenchmarkId::new("crc64fast_nvme::simd", size), &buf, |b, buf| { - b.iter(|| { - let mut digest = crc64fast_nvme::Digest::new(); - digest.write(&buf[..(1 << size)]); - digest.write(&buf[(1 << size)..(2 << size)]); - digest.write(&buf[(2 << size)..]); - digest.sum64() - }) - }); + group.bench_with_input( + BenchmarkId::new("crc64fast_nvme::simd", size), + &buf, + |b, buf| { + b.iter(|| { + let mut digest = crc64fast_nvme::Digest::new(); + digest.write(&buf[..(1 << size)]); + digest.write(&buf[(1 << size)..(2 << size)]); + digest.write(&buf[(2 << size)..]); + digest.sum64() + }) + }, + ); group.bench_with_input( BenchmarkId::new("crc64fast_nvme::table", size), &buf,