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

Remove Score Ord, PartialOrd, Eq and PartialEq impls #6420

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

jxs
Copy link
Member

@jxs jxs commented Sep 20, 2024

Issue Addressed

following the conversation on #6407 (comment) this PR follows Rust std convention and removes the Ord PartialOrd Eq and PartialEq for Score which depends on f64. Instead as std impls total_cmp which handles NaN cases.
This also reverts #6407
cc @michaelsproul @eserilev

@jxs jxs marked this pull request as draft September 20, 2024 15:27
@jxs jxs force-pushed the remove-score-ord branch 3 times, most recently from dae7530 to f52f8c8 Compare September 20, 2024 16:40
@jxs jxs marked this pull request as ready for review September 20, 2024 17:11
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Yeah I think this is nicer and should prevent misuse of a dodgy PartialEq/PartialOrd implementation.

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. code-quality Networking labels Sep 23, 2024
@jxs
Copy link
Member Author

jxs commented Sep 25, 2024

@Mergifyio queue

Copy link

mergify bot commented Sep 25, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 50d8375

@mergify mergify bot merged commit 50d8375 into sigp:unstable Sep 25, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-quality Networking waiting-on-author The reviewer has suggested changes and awaits thier implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants