Skip to content

Commit afad778

Browse files
committed
Merge branch 'main' into n-len-vecs
2 parents c0dc4de + cc8fcc0 commit afad778

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

instant-distance-py/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ impl Metric<[f32]> for EuclidMetric {
414414
}
415415
}
416416
#[cfg(not(target_arch = "x86_64"))]
417-
lhs.0
417+
lhs
418418
.iter()
419419
.zip(rhs.0.iter())
420420
.map(|(&a, &b)| (a - b).powi(2))

instant-distance/benches/all.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ benchmark_group!(benches, build_heuristic);
1010
fn build_heuristic(bench: &mut Bencher) {
1111
let mut rng = StdRng::seed_from_u64(SEED);
1212
let points = (0..1024)
13-
.into_iter()
1413
.map(|_| [rng.gen(), rng.gen()])
1514
.collect::<Vec<_>>();
1615

instant-distance/tests/all.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use instant_distance::{Builder, Metric, Search};
1010
#[allow(clippy::float_cmp, clippy::approx_constant)]
1111
fn map() {
1212
let points = (0..5)
13-
.into_iter()
1413
.map(|i| Point(i as f32, i as f32))
1514
.collect::<Vec<_>>();
1615
let values = vec!["zero", "one", "two", "three", "four"];
@@ -59,7 +58,6 @@ fn randomized(builder: Builder) -> (u64, usize) {
5958
let seed = ThreadRng::default().gen::<u64>();
6059
let mut rng = StdRng::seed_from_u64(seed);
6160
let points = (0..1024)
62-
.into_iter()
6361
.map(|_| Point(rng.gen(), rng.gen()))
6462
.collect::<Vec<_>>();
6563

0 commit comments

Comments
 (0)