Skip to content

Commit

Permalink
Bypass that lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeo committed Mar 2, 2024
1 parent 239c2fb commit 3032202
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pub static AIRPORTS_MAP: Lazy<HashMap<&'static str, Airport>> = Lazy::new(|| {
///
/// assert_eq!(distance.round() as i64, 95);
/// ```
#[allow(clippy::must_use_candidate)]
pub fn haversine(lat1: f64, lon1: f64, lat2: f64, lon2: f64) -> f64 {
let r = 6371e3;
let φ1 = (lat1 * PI) / 180_f64;
Expand Down

0 comments on commit 3032202

Please sign in to comment.