From c4d2ad2d6412ff805877088d368a8d3e05af198d Mon Sep 17 00:00:00 2001 From: Sergii Glushchenko Date: Tue, 20 Aug 2024 15:46:05 +0200 Subject: [PATCH] Fix benches (#4560) --- lib/benches/hashset_vs_vector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/benches/hashset_vs_vector.rs b/lib/benches/hashset_vs_vector.rs index 23e29120..ca9034c7 100644 --- a/lib/benches/hashset_vs_vector.rs +++ b/lib/benches/hashset_vs_vector.rs @@ -19,7 +19,7 @@ fn bench_hashset(samples_vec: &Vec>) { fn bench_hashbrown(samples_vec: &Vec>) { for samples in samples_vec { - let mut h = AHashSet::::with_capacity(samples.len()); + let mut h = AHashSet::with_capacity(samples.len()); for &s in samples { h.insert(s); } @@ -48,7 +48,7 @@ fn bench_vector(samples_vec: &Vec>) { fn bench_array(samples_vec: &Vec>) { for samples in samples_vec { - let mut v = ArraySet::::with_capacity(samples.len()); + let mut v = ArraySet::::with_capacity(samples.len()); for &s in samples { v.insert(s); }