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

Impl std error using macro #1136

Merged
merged 1 commit into from Sep 9, 2022

Conversation

Kixunil
Copy link
Collaborator

@Kixunil Kixunil commented Jul 27, 2022

There was a bunch of manual implemntations that can be converted to
macro call. This commit replaces them except for enums because those are
currently not supported by the macro and we want to protect against
forgetting to handle newly added variants.

Depends on #1129 and is not urgent for the next release.

@Kixunil Kixunil added code quality Makes code easier to understand and less likely to lead to problems trivial Obvious, easy and quick to review (few lines or doc-only...) labels Jul 27, 2022
@Kixunil Kixunil force-pushed the impl_std_error_using_macro branch 3 times, most recently from 32008d8 to d18643b Compare July 27, 2022 18:48
@tcharding
Copy link
Member

ACK, (once #1129 merges and this is rebased).

There was a bunch of manual implemntations that can be converted to
macro call. This commit replaces them except for enums because those are
currently not supported by the macro and we want to protect against
forgetting to handle newly added variants.
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 86218ad

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 86218ad

@apoelstra apoelstra merged commit 816d24e into rust-bitcoin:master Sep 9, 2022
@Kixunil Kixunil deleted the impl_std_error_using_macro branch September 9, 2022 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Makes code easier to understand and less likely to lead to problems trivial Obvious, easy and quick to review (few lines or doc-only...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants