You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use geo_types::{
Geometry, GeometryCollection, Line, LineString, MultiLineString, MultiPoint, MultiPolygon, Polygon, Rect, Point, Coord,
};
use geo_types::{coord, point, line_string, polygon};
Instead I'd like to:
use geo_types::geometries::*;
use geo_types::geometries::macros::*;
And re-export them as geo::geometries/geo::geometries::macros.
In general, I'm not a fan of large wild card imports because later in the code it's hard to know where something came from, but for cases like this when it's a small number of well known things, I think it's helpful with little downside.
This would be a non-breaking change - the old paths would remain.
The text was updated successfully, but these errors were encountered:
I often see client code like this:
Instead I'd like to:
And re-export them as
geo::geometries
/geo::geometries::macros
.In general, I'm not a fan of large wild card imports because later in the code it's hard to know where something came from, but for cases like this when it's a small number of well known things, I think it's helpful with little downside.
This would be a non-breaking change - the old paths would remain.
The text was updated successfully, but these errors were encountered: