Cleanup imports

This commit is contained in:
Austen Adler 2023-03-19 23:19:19 -04:00
parent e22d15f381
commit bef1fec27c
6 changed files with 14 additions and 29 deletions

View File

@ -1,4 +1,4 @@
use dms_coordinates::{Bearing, DMS};
use nom::{
branch::alt,
bytes::complete::{tag_no_case, take_while1},

View File

@ -1,13 +1,10 @@
use crate::{
common::{optional_separator, parse_direction},
Direction,
common::{optional_separator},
};
use nom::{
branch::alt,
character::complete::{self, space0, space1},
combinator::{eof, map, map_opt, map_res, opt},
combinator::{map_opt},
number::complete::double,
sequence::{pair, tuple},
sequence::{tuple},
IResult,
};
use std::str::FromStr;

View File

@ -5,11 +5,9 @@ use crate::{
use dms_coordinates::Bearing;
pub use dms_coordinates::DMS;
use nom::{
branch::alt,
character::complete::{self, space0, space1},
combinator::{eof, map, map_opt, map_res, opt},
number::complete::double,
sequence::{pair, tuple},
character::complete::{self},
combinator::{map, map_opt},
sequence::{tuple},
IResult,
};
use std::str::FromStr;

View File

@ -1,5 +1,3 @@
#![allow(unused_imports)]
use std::str::FromStr;
mod common;
pub mod dd;

View File

@ -1,14 +1,9 @@
use crate::{
common::{optional_separator, parse_direction},
Direction, LatLon,
LatLon,
};
use nom::{
branch::alt,
bytes::complete::take_while,
character::complete::{self, space0, space1},
combinator::{eof, map, map_opt, map_res, opt},
number::complete::double,
sequence::{pair, tuple},
combinator::{map_opt},
IResult,
};
use std::str::FromStr;

View File

@ -1,18 +1,15 @@
use crate::{
common::{optional_separator, parse_direction, parse_f64},
Direction, LatLon,
common::{parse_direction, parse_f64}, LatLon,
};
use nom::{
branch::alt,
bytes::complete::{take, take_while},
bytes::complete::{take},
character::complete::{self, space0, space1},
combinator::{eof, map, map_opt, map_res, opt},
number::complete::double,
sequence::{pair, tuple},
combinator::{map_opt, opt},
sequence::{tuple},
IResult,
};
use std::str::FromStr;
use utm::WSG84ToLatLonError;
#[derive(PartialEq, Debug)]
pub struct Coordinate {