From 8bb21ee668921c73acba72e9b10907ee67c72069 Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Mon, 15 Jul 2024 18:20:29 -0400 Subject: [PATCH] chore: fix clippy --- plonky2/benches/ffts.rs | 4 ++-- plonky2/benches/merkle.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plonky2/benches/ffts.rs b/plonky2/benches/ffts.rs index 4149c02d46..54e0a7396a 100644 --- a/plonky2/benches/ffts.rs +++ b/plonky2/benches/ffts.rs @@ -7,7 +7,7 @@ use plonky2::field::types::Field; use tynm::type_name; pub(crate) fn bench_ffts(c: &mut Criterion) { - let mut group = c.benchmark_group(&format!("fft<{}>", type_name::())); + let mut group = c.benchmark_group(format!("fft<{}>", type_name::())); for size_log in [13, 14, 15, 16] { let size = 1 << size_log; @@ -21,7 +21,7 @@ pub(crate) fn bench_ffts(c: &mut Criterion) { pub(crate) fn bench_ldes(c: &mut Criterion) { const RATE_BITS: usize = 3; - let mut group = c.benchmark_group(&format!("lde<{}>", type_name::())); + let mut group = c.benchmark_group(format!("lde<{}>", type_name::())); for size_log in [13, 14, 15, 16] { let orig_size = 1 << (size_log - RATE_BITS); diff --git a/plonky2/benches/merkle.rs b/plonky2/benches/merkle.rs index f9bae127fa..6230c13436 100644 --- a/plonky2/benches/merkle.rs +++ b/plonky2/benches/merkle.rs @@ -12,7 +12,7 @@ use tynm::type_name; const ELEMS_PER_LEAF: usize = 135; pub(crate) fn bench_merkle_tree>(c: &mut Criterion) { - let mut group = c.benchmark_group(&format!( + let mut group = c.benchmark_group(format!( "merkle-tree<{}, {}>", type_name::(), type_name::()