diff --git a/milli/src/distance.rs b/milli/src/distance.rs index bbd2f15eb..22047eea3 100644 --- a/milli/src/distance.rs +++ b/milli/src/distance.rs @@ -36,7 +36,7 @@ impl Metric> for Euclidean { #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { if std::arch::is_aarch64_feature_detected!("neon") && a.len() >= MIN_DIM_SIZE_SIMD { - let squared = unsafe { squared_euclid_neon(&a, &b) }; + let squared = unsafe { squared_euclid_neon(a, b) }; let dist = squared.sqrt(); debug_assert!(!dist.is_nan()); return dist.to_bits(); diff --git a/milli/src/search/new/mod.rs b/milli/src/search/new/mod.rs index d56e9d1ed..246a89045 100644 --- a/milli/src/search/new/mod.rs +++ b/milli/src/search/new/mod.rs @@ -454,7 +454,7 @@ pub fn execute_search( let hnsw = ctx.index.vector_hnsw(ctx.txn)?.unwrap_or_default(); let ef = hnsw.len().min(100); let mut dest = vec![Neighbor { index: 0, distance: 0 }; ef]; - let neighbors = hnsw.nearest(&vector, ef, &mut searcher, &mut dest[..]); + let neighbors = hnsw.nearest(vector, ef, &mut searcher, &mut dest[..]); let mut docids = Vec::new(); for Neighbor { index, distance: _ } in neighbors.iter() {