Skip to content

Implement Eq for Map, Number and Value. #640

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

Merged
merged 1 commit into from
Mar 28, 2020

Conversation

smarnach
Copy link
Contributor

These types already have PartialEq implementations which define equivalence relations, so we can implement Eq as well. Fixes #638.

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Could you check why the build is failing? https://travis-ci.org/github/serde-rs/json/jobs/667909263

These types already have `PartialEq` implementations which define equivalence
relations, so we can implement `Eq` as well. Fixes serde-rs#638.
@smarnach smarnach force-pushed the smarnach/eq-impls branch from ba23ee9 to 99eb4ea Compare March 28, 2020 09:33
@smarnach
Copy link
Contributor Author

I failed to test locally with the preserve_order feature enabled. Fixed now.

Copy link
Member

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Looks good!

@dtolnay dtolnay merged commit 4ac9f6c into serde-rs:master Mar 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Implement Eq for Value, Number and Map
2 participants