Skip to content
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

derive Eq for other core geo types #435

Merged
merged 2 commits into from
Apr 2, 2020
Merged

Conversation

michaelkirk
Copy link
Member

Adds Eq conformance to other core geo types, building off of #431

Seems reasonable to me! Yeah +1 to adding the same impl for all the other core geo types

Rather than spelling out the impl, I've taken advantage of how derive already bounds the generated impl for us. See rust-lang/rust#21237 for more details

I wrote a few doc-tests while developing, but I reverted them in fc33f9f since they're pretty verbose, and seem superfluous since they're only asserting rust language semantics rather than anything substantial in this lib.

I can un-revert them if you'd prefer.

derive applies the necessary trait bounds to derived impl.

see rust-lang/rust#21237 for more details
These tests are just testing how rust features works, not anything in this lib.
Copy link
Member

@frewsxcv frewsxcv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! up to you if you want to revert the docs, i don't feel strongly in any one way

@frewsxcv
Copy link
Member

frewsxcv commented Apr 2, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 2, 2020

Build succeeded

@bors bors bot merged commit 903a048 into georust:master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants