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 non_exhaustive from error structs #45

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

tcharding
Copy link
Member

Currently we have a few public error structs the sole purpose of which is to hide error internals. As such they have private (pub(crate)) fields and cannot be constructed by lib users, they do not need the non_exhaustive attribute for this reason.

Currently we have a few public error structs the sole purpose of which
is to hide error internals. As such they have private (`pub(crate)`)
fields and cannot be constructed by lib users, they do not need the
`non_exhaustive` attribute for this reason.
@tcharding
Copy link
Member Author

This is follow up to #44

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 da79c21

@apoelstra
Copy link
Member

I'm gonna go ahead and merge since this was a 2-line patch and was @Kixunil's suggestion anyway.

@apoelstra apoelstra merged commit 701b714 into rust-bitcoin:master Nov 9, 2023
9 checks passed
@tcharding tcharding deleted the 11-08-rm-non_exhaustive branch November 16, 2023 01:28
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