diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 6abaf1c..8484669 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["gis", "geo", "geography", "geospatial"] [dependencies] geo-types = { version = "0.6.0", default-features = false } num-traits = "0.2" -robust = "0.1" +robust = "0.2" float_next_after = "0.1" [dev-dependencies] diff --git a/lib/src/boolean/signed_area.rs b/lib/src/boolean/signed_area.rs index eb29a88..75e7159 100644 --- a/lib/src/boolean/signed_area.rs +++ b/lib/src/boolean/signed_area.rs @@ -3,13 +3,13 @@ use geo_types::Coordinate; use robust::{orient2d, Coord}; #[inline] -pub fn coordinate_to_robust(p: Coordinate) -> Coord +pub fn coordinate_to_robust(p: Coordinate) -> Coord where F: Float, { Coord { - x: p.x.into(), - y: p.y.into(), + x: p.x, + y: p.y, } }