diff --git a/ferveo/benches/benchmarks/pairing.rs b/ferveo/benches/benchmarks/pairing.rs index 318bdd30..a5a9aebb 100644 --- a/ferveo/benches/benchmarks/pairing.rs +++ b/ferveo/benches/benchmarks/pairing.rs @@ -367,10 +367,8 @@ pub fn bench_batch_inverse(c: &mut Criterion) { criterion::BenchmarkId::new("BLS12-381 Batch inverse", n), &a, |b, a| { - b.iter(|| { - ark_ff::batch_inversion(&mut a.clone()); - black_box(()) - }); + #[allow(clippy::unit_arg)] + b.iter(|| black_box(ark_ff::batch_inversion(&mut a.clone()))); }, ); } diff --git a/tpke-wasm/benches/benchmarks.rs b/tpke-wasm/benches/benchmarks.rs index 55e01f4f..69c64c23 100644 --- a/tpke-wasm/benches/benchmarks.rs +++ b/tpke-wasm/benches/benchmarks.rs @@ -37,6 +37,7 @@ pub fn bench_encrypt_combine(c: &mut Criterion) { move || { let setup = setup.clone(); let decryption_shares = decryption_shares.clone(); + #[allow(clippy::unit_arg)] black_box({ let mut ss_builder = SharedSecretBuilder::new(&setup); for share in decryption_shares {