Fix clippy lints
This commit is contained in:
parent
fcab658518
commit
2df1c1c59a
@ -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},
|
||||
|
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user