From 2df1c1c59abc899304b35ed86ef3bd722bcbd612 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 27 Apr 2023 21:31:53 -0400 Subject: [PATCH] Fix clippy lints --- spatial-coordinate-systems/src/latlon.rs | 7 +------ spatial-coordinate-systems/src/sky_vector.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/spatial-coordinate-systems/src/latlon.rs b/spatial-coordinate-systems/src/latlon.rs index 6dff8e6..c227f70 100644 --- a/spatial-coordinate-systems/src/latlon.rs +++ b/spatial-coordinate-systems/src/latlon.rs @@ -4,12 +4,7 @@ use std::fmt; #[cfg(feature = "wasm_bindgen")] use wasm_bindgen::prelude::wasm_bindgen; -use nom::{ - character::complete::space0, - combinator::{eof, map_res}, - sequence::tuple, - IResult, -}; +use nom::{character::complete::space0, combinator::map_res, sequence::tuple, IResult}; use crate::{ common::{optional_separator, parse_f64}, diff --git a/spatial-coordinate-systems/src/sky_vector.rs b/spatial-coordinate-systems/src/sky_vector.rs index 547defd..c2f67e4 100644 --- a/spatial-coordinate-systems/src/sky_vector.rs +++ b/spatial-coordinate-systems/src/sky_vector.rs @@ -62,7 +62,7 @@ impl Coordinate { } fn latlon_to_string(latlon: &LatLon) -> String { - let dms = crate::dms::Coordinate::from(latlon.clone()); + let dms = crate::dms::Coordinate::from(*latlon); let lat = dms.get_lat(); let lon = dms.get_lon(); format!(