From 53dd4e3a6ba199b578718a12a9e37b100e7fc875 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 10 Mar 2023 09:37:02 +0100 Subject: [PATCH] Apply suggestions for clippy 1.68 --- instant-distance/benches/all.rs | 1 - instant-distance/tests/all.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/instant-distance/benches/all.rs b/instant-distance/benches/all.rs index a80d7dd..43695c9 100644 --- a/instant-distance/benches/all.rs +++ b/instant-distance/benches/all.rs @@ -10,7 +10,6 @@ benchmark_group!(benches, build_heuristic); fn build_heuristic(bench: &mut Bencher) { let mut rng = StdRng::seed_from_u64(SEED); let points = (0..1024) - .into_iter() .map(|_| Point(rng.gen(), rng.gen())) .collect::>(); diff --git a/instant-distance/tests/all.rs b/instant-distance/tests/all.rs index 276f71c..b9fa973 100644 --- a/instant-distance/tests/all.rs +++ b/instant-distance/tests/all.rs @@ -10,7 +10,6 @@ use instant_distance::{Builder, Point as _, Search}; #[allow(clippy::float_cmp, clippy::approx_constant)] fn map() { let points = (0..5) - .into_iter() .map(|i| Point(i as f32, i as f32)) .collect::>(); let values = vec!["zero", "one", "two", "three", "four"]; @@ -57,7 +56,6 @@ fn randomized(builder: Builder) -> (u64, usize) { let seed = ThreadRng::default().gen::(); let mut rng = StdRng::seed_from_u64(seed); let points = (0..1024) - .into_iter() .map(|_| Point(rng.gen(), rng.gen())) .collect::>();