Skip to content

added derives to close event#504

Merged
Madoshakalaka merged 1 commit intoranile:masterfrom
Alexi24601:master
Mar 23, 2026
Merged

added derives to close event#504
Madoshakalaka merged 1 commit intoranile:masterfrom
Alexi24601:master

Conversation

@Alexi24601
Copy link
Copy Markdown

Addressing issue #503

@Madoshakalaka
Copy link
Copy Markdown
Collaborator

thanks for the PR

PartialEq, Eq, and Hash are clearly justified, comparing close events and using them as map keys is reasonable. Ord/PartialOrd are questionable, there's no meaningful ordering for close events. Sorting by (code, reason, was_clean) in declaration order is arbitrary.

Can you provide more background on your usage?

@Madoshakalaka
Copy link
Copy Markdown
Collaborator

Madoshakalaka commented Mar 23, 2026

I'm merging Debug, PartialEq, Eq, and Hash for now. Please feel free to open a new issue anytime.

@Madoshakalaka Madoshakalaka merged commit 2af0829 into ranile:master Mar 23, 2026
19 checks passed
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