Cleanup imports
This commit is contained in:
parent
e22d15f381
commit
bef1fec27c
@ -1,4 +1,4 @@
|
|||||||
use dms_coordinates::{Bearing, DMS};
|
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
branch::alt,
|
||||||
bytes::complete::{tag_no_case, take_while1},
|
bytes::complete::{tag_no_case, take_while1},
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
common::{optional_separator, parse_direction},
|
common::{optional_separator},
|
||||||
Direction,
|
|
||||||
};
|
};
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
combinator::{map_opt},
|
||||||
character::complete::{self, space0, space1},
|
|
||||||
combinator::{eof, map, map_opt, map_res, opt},
|
|
||||||
number::complete::double,
|
number::complete::double,
|
||||||
sequence::{pair, tuple},
|
sequence::{tuple},
|
||||||
IResult,
|
IResult,
|
||||||
};
|
};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
@ -5,11 +5,9 @@ use crate::{
|
|||||||
use dms_coordinates::Bearing;
|
use dms_coordinates::Bearing;
|
||||||
pub use dms_coordinates::DMS;
|
pub use dms_coordinates::DMS;
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
character::complete::{self},
|
||||||
character::complete::{self, space0, space1},
|
combinator::{map, map_opt},
|
||||||
combinator::{eof, map, map_opt, map_res, opt},
|
sequence::{tuple},
|
||||||
number::complete::double,
|
|
||||||
sequence::{pair, tuple},
|
|
||||||
IResult,
|
IResult,
|
||||||
};
|
};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
#![allow(unused_imports)]
|
|
||||||
|
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
mod common;
|
mod common;
|
||||||
pub mod dd;
|
pub mod dd;
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
common::{optional_separator, parse_direction},
|
LatLon,
|
||||||
Direction, LatLon,
|
|
||||||
};
|
};
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
|
||||||
bytes::complete::take_while,
|
bytes::complete::take_while,
|
||||||
character::complete::{self, space0, space1},
|
combinator::{map_opt},
|
||||||
combinator::{eof, map, map_opt, map_res, opt},
|
|
||||||
number::complete::double,
|
|
||||||
sequence::{pair, tuple},
|
|
||||||
IResult,
|
IResult,
|
||||||
};
|
};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
@ -1,18 +1,15 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
common::{optional_separator, parse_direction, parse_f64},
|
common::{parse_direction, parse_f64}, LatLon,
|
||||||
Direction, LatLon,
|
|
||||||
};
|
};
|
||||||
use nom::{
|
use nom::{
|
||||||
branch::alt,
|
bytes::complete::{take},
|
||||||
bytes::complete::{take, take_while},
|
|
||||||
character::complete::{self, space0, space1},
|
character::complete::{self, space0, space1},
|
||||||
combinator::{eof, map, map_opt, map_res, opt},
|
combinator::{map_opt, opt},
|
||||||
number::complete::double,
|
sequence::{tuple},
|
||||||
sequence::{pair, tuple},
|
|
||||||
IResult,
|
IResult,
|
||||||
};
|
};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use utm::WSG84ToLatLonError;
|
|
||||||
|
|
||||||
#[derive(PartialEq, Debug)]
|
#[derive(PartialEq, Debug)]
|
||||||
pub struct Coordinate {
|
pub struct Coordinate {
|
||||||
|
Loading…
Reference in New Issue
Block a user