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!(