chore: Apply clippy (#189)

This commit is contained in:
Lucio Franco
2019-12-13 23:55:49 -05:00
committed by GitHub
parent 502491a590
commit 82facb6283
8 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ fn in_range(point: &Point, rect: &Rectangle) -> bool {
/// This code was taken from http://www.movable-type.co.uk/scripts/latlong.html.
fn calc_distance(p1: &Point, p2: &Point) -> i32 {
const CORD_FACTOR: f64 = 1e7;
const R: f64 = 6371000.0; // meters
const R: f64 = 6_371_000.0; // meters
let lat1 = p1.latitude as f64 / CORD_FACTOR;
let lat2 = p2.latitude as f64 / CORD_FACTOR;