Skip to content

Commit

Permalink
Update specializations.rs
Browse files Browse the repository at this point in the history
When I want to benchmark only a few iterators, I don't use iproduct and end up with an annoying and recurring warning that this simple fix solves.
  • Loading branch information
Philippe-Cholet committed Apr 16, 2024
1 parent 5f401bb commit ed695af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benches/specializations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use criterion::black_box;
use criterion::BenchmarkId;
use itertools::iproduct;
use itertools::Itertools;

const NTH_INPUTS: &[usize] = &[0, 1, 2, 4, 8];
Expand Down Expand Up @@ -261,7 +260,7 @@ bench_specializations! {
{
let v = black_box(vec![0; 16]);
}
iproduct!(&v, &v, &v)
itertools::iproduct!(&v, &v, &v)
}
multi_cartesian_product {
{
Expand Down

0 comments on commit ed695af

Please sign in to comment.