Skip to content

Commit

Permalink
other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Feb 17, 2019
1 parent 3a38c13 commit ef85605
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions geo/src/algorithm/from_postgis.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use postgis;
use postgis::ewkb::{GeometryCollectionT, GeometryT};
use {
use crate::{
Geometry, GeometryCollection, LineString, MultiLineString, MultiPoint, MultiPolygon, Point,
Polygon,
};
Expand All @@ -11,7 +11,7 @@ use {
/// reference system - not just WGS84. No attempt is made to convert
/// data between reference systems.
pub trait FromPostgis<T> {
fn from_postgis(T) -> Self;
fn from_postgis(_: T) -> Self;
}

impl<'a, T> FromPostgis<&'a T> for Point<f64>
Expand Down
2 changes: 1 addition & 1 deletion geo/src/algorithm/to_postgis.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use postgis::ewkb;
use {
use crate::{
Coordinate, Geometry, GeometryCollection, Line, LineString, MultiLineString, MultiPoint,
MultiPolygon, Point, Polygon,
};
Expand Down
6 changes: 3 additions & 3 deletions geo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub mod prelude {
pub use crate::algorithm::euclidean_length::EuclideanLength;
pub use crate::algorithm::extremes::ExtremePoints;
#[cfg(feature = "postgis-integration")]
pub use algorithm::from_postgis::FromPostgis;
pub use crate::algorithm::from_postgis::FromPostgis;
pub use crate::algorithm::haversine_destination::HaversineDestination;
pub use crate::algorithm::haversine_distance::HaversineDistance;
pub use crate::algorithm::haversine_intermediate::HaversineIntermediate;
Expand All @@ -66,12 +66,12 @@ pub mod prelude {
pub use crate::algorithm::map_coords::MapCoords;
pub use crate::algorithm::orient::Orient;
#[cfg(feature = "use-proj")]
pub use algorithm::proj::Proj;
pub use crate::algorithm::proj::Proj;
pub use crate::algorithm::rotate::{Rotate, RotatePoint};
pub use crate::algorithm::simplify::Simplify;
pub use crate::algorithm::simplifyvw::SimplifyVW;
#[cfg(feature = "postgis-integration")]
pub use algorithm::to_postgis::ToPostgis;
pub use crate::algorithm::to_postgis::ToPostgis;
pub use crate::algorithm::translate::Translate;
pub use crate::algorithm::vincenty_distance::VincentyDistance;
pub use crate::algorithm::vincenty_length::VincentyLength;
Expand Down

0 comments on commit ef85605

Please sign in to comment.