Skip to content

Commit

Permalink
Bump geo-types and use Coord instead of Coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Feb 10, 2023
1 parent 9c251d9 commit ec1a4d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ rust-version = "1.56"
features = ["use-serde"]

[features]
use-serde = [ "serde", "time/serde", "geo-types/serde" ]
use-serde = ["serde", "time/serde", "geo-types/serde"]

[dependencies]
assert_approx_eq = "1"
time = { version = "0.3", features = ["formatting", "parsing"] }
error-chain = "0.12"
thiserror = "1.0"
geo-types = "0.7"
geo-types = "0.7.8"
xml-rs = "0.8"
serde = { version = "1.0", features = [ "derive" ], optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }

[dev-dependencies]
geo = "0.18"
6 changes: 3 additions & 3 deletions src/parser/bounds.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::io::Read;

// use error_chain::{bail, ensure};
use geo_types::{Coordinate, Rect};
use geo_types::{Coord, Rect};
use xml::reader::XmlEvent;

use crate::errors::{GpxError, GpxResult};
Expand Down Expand Up @@ -43,11 +43,11 @@ pub fn consume<R: Read>(context: &mut Context<R>) -> GpxResult<Rect<f64>> {
}

let bounds: Rect<f64> = Rect::new(
Coordinate {
Coord {
x: minlon,
y: minlat,
},
Coordinate {
Coord {
x: maxlon,
y: maxlat,
},
Expand Down

0 comments on commit ec1a4d4

Please sign in to comment.