Skip to content

Commit

Permalink
Cleanup and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Jan 6, 2025
1 parent 388fe45 commit eb22beb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benches/cctv.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{io::BufRead, sync::mpsc::Iter};
use std::io::BufRead;

use criterion::{black_box, criterion_group, criterion_main, BatchSize, Criterion};
use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
use crypto_bigint::U1024;
use rand_chacha::ChaCha8Rng;

Expand Down Expand Up @@ -78,7 +78,7 @@ fn bench_cctv(c: &mut Criterion) {

group.bench_function("factory API", |b| {
b.iter_batched(
|| HardcodedSieve::new(),
HardcodedSieve::new,
|sieve| sieve_and_find(&mut rng, sieve, is_prime_with_rng),
BatchSize::SmallInput,
);
Expand Down

0 comments on commit eb22beb

Please sign in to comment.