Skip to content

More standard derives for Error #277

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
Feb 10, 2021

Conversation

dr-orlovsky
Copy link
Contributor

According to the discussion in rust-bitcoin/rust-bitcoin#555

This PR is required for further work on error types derives in rust-bitcoin

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Contributor

@sgeisler sgeisler left a comment

Choose a reason for hiding this comment

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

utACK 519857c

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ack 519857c

@apoelstra apoelstra merged commit 3bff596 into rust-bitcoin:master Feb 10, 2021
@dr-orlovsky
Copy link
Contributor Author

We need a new minor release in order to unblock rust-bitcoin/rust-bitcoin#559

@Kixunil
Copy link
Collaborator

Kixunil commented Feb 10, 2022

Shit, I didn't see this. 😞 I don't think over-promising traits on error types is a good idea. We don't know which variants will come in the future. This is mainly concerning for Copy but also Ord/PartialOrd are weird - what does it mean to order errors? Is reordering variants a breaking change then?

Eq/PartialEq are on the edge in my mind but I think acceptable.

Can we remove Copy, Ord, PartialOrd and stick to it?

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.

None yet

4 participants