Skip to content

Implement Eq for Map, Number and Value.#640

Merged
dtolnay merged 1 commit intoserde-rs:masterfrom
smarnach:smarnach/eq-impls
Mar 28, 2020
Merged

Implement Eq for Map, Number and Value.#640
dtolnay merged 1 commit intoserde-rs:masterfrom
smarnach:smarnach/eq-impls

Conversation

@smarnach
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
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
takumi-earth pushed a commit to earthlings-dev/json that referenced this pull request Jan 27, 2026
Implement Eq for Map, Number and Value.
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