Skip to content

Commit

Permalink
Apply suggestions for clippy 1.68
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Mar 10, 2023
1 parent d51b99b commit cc8fcc0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion instant-distance/benches/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();

Expand Down
2 changes: 0 additions & 2 deletions instant-distance/tests/all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<_>>();
let values = vec!["zero", "one", "two", "three", "four"];
Expand Down Expand Up @@ -57,7 +56,6 @@ fn randomized(builder: Builder) -> (u64, usize) {
let seed = ThreadRng::default().gen::<u64>();
let mut rng = StdRng::seed_from_u64(seed);
let points = (0..1024)
.into_iter()
.map(|_| Point(rng.gen(), rng.gen()))
.collect::<Vec<_>>();

Expand Down

0 comments on commit cc8fcc0

Please sign in to comment.