Fix clippy lints

This commit is contained in:
Austen Adler 2023-04-27 21:31:53 -04:00
parent fcab658518
commit 2df1c1c59a
2 changed files with 2 additions and 7 deletions

View File

@ -4,12 +4,7 @@ use std::fmt;
#[cfg(feature = "wasm_bindgen")] #[cfg(feature = "wasm_bindgen")]
use wasm_bindgen::prelude::wasm_bindgen; use wasm_bindgen::prelude::wasm_bindgen;
use nom::{ use nom::{character::complete::space0, combinator::map_res, sequence::tuple, IResult};
character::complete::space0,
combinator::{eof, map_res},
sequence::tuple,
IResult,
};
use crate::{ use crate::{
common::{optional_separator, parse_f64}, common::{optional_separator, parse_f64},

View File

@ -62,7 +62,7 @@ impl Coordinate {
} }
fn latlon_to_string(latlon: &LatLon) -> String { 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 lat = dms.get_lat();
let lon = dms.get_lon(); let lon = dms.get_lon();
format!( format!(