-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add conversions from Line, Triangle, Rect and GeometryCollection #136
Conversation
We aren't creating Line, Triangle or Rect types, after all.
7211512
to
24ace6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
lgtm
@@ -46,6 +46,42 @@ where | |||
} | |||
} | |||
|
|||
#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea what this line accomplishes?
It seems similar to this rust-lang/rust#43348 which produces output in the docs like this "Unix only" label:
Looks like it was originally added for quick_collection in 12c4f18 but I don't see any effect:
No need to change anything in this PR - I realize this was copied from the similar methods in this file, just curious if anyone has context to see if it's working as intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was my attempt at adding a marker to the docs to indicate that it's only available when the geo-types
feature is activated, but that functionality has either changed slightly, or I screwed it up: https://stackoverflow.com/a/61417700/416626
geo_types::Geometry::MultiLineString(ref multi_line_string) => { | ||
geometry::Value::from(multi_line_string) | ||
} | ||
geo_types::Geometry::Polygon(ref polygon) => geometry::Value::from(polygon), | ||
geo_types::Geometry::MultiPolygon(ref multi_polygon) => { | ||
geometry::Value::from(multi_polygon) | ||
} | ||
_ => panic!("GeometryCollection not allowed"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
Build succeeded: |
138: Fix feature labels for docs.rs r=urschrei a=urschrei Following up on #136 (comment) See here: https://stackoverflow.com/a/61417700/416626 Co-authored-by: Stephan Hügel <shugel@tcd.ie>
Closes #133