mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
c81ff22c5b
commit
a84f3a8b31
13 changed files with 77 additions and 69 deletions
|
@ -142,7 +142,7 @@ where
|
|||
Some((head, tail))
|
||||
}
|
||||
|
||||
/// Return the distance between two points in meters
|
||||
/// Return the distance between two points in meters.
|
||||
fn distance_between_two_points(a: &[f64; 2], b: &[f64; 2]) -> f64 {
|
||||
let a = haversine::Location { latitude: a[0], longitude: a[1] };
|
||||
let b = haversine::Location { latitude: b[0], longitude: b[1] };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue