Hi, I'm using gpx crate in a program together with geo and geo-types. When compiling I get:
error[E0308]: mismatched types
--> src/context.rs:166:37
|
166 | coords.push(f.point());
| ^^^^^^^^^ expected struct `geo::Point`, found struct `geo_types::point::Point`
|
= note: expected struct `geo::Point<f64>`
found struct `geo_types::point::Point<f64>`
= note: perhaps two different versions of crate `geo_types` are being used?
error[E0599]: no method named `geodesic_distance` found for struct `geo_types::point::Point<f64>` in the current scope
--> src/context.rs:174:36
|
174 | let d = p1.geodesic_distance(&p2);
| ^^^^^^^^^^^^^^^^^ method not found in `geo_types::point::Point<f64>`
I can solve this updating geo and geo-types dependency on a local gpx crate. How should this work on Rust? Should gpx always be in sync with latest geo release? Should gpx re-export geo crate? Sorry but I'm not a Rust expert!
Hi, I'm using
gpx
crate in a program together withgeo
andgeo-types
. When compiling I get:I can solve this updating
geo
andgeo-types
dependency on a localgpx
crate. How should this work on Rust? Shouldgpx
always be in sync with latestgeo
release? Shouldgpx
re-exportgeo
crate? Sorry but I'm not a Rust expert!