diff --git a/milli/src/search/criteria/geo.rs b/milli/src/search/criteria/geo.rs index bf3ae7aba..6f8f1406a 100644 --- a/milli/src/search/criteria/geo.rs +++ b/milli/src/search/criteria/geo.rs @@ -106,8 +106,8 @@ fn geo_point( point: [f64; 2], ) -> Box> { let results = rtree - .nearest_neighbor_iter_with_distance_2(&point) - .filter_map(move |(point, _distance)| candidates.contains(point.data).then(|| point.data)) + .nearest_neighbor_iter(&point) + .filter_map(move |point| candidates.contains(point.data).then(|| point.data)) .map(|id| std::iter::once(id).collect::()) .collect::>();