Skip to content

Impl std error using macro#1136

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
Kixunil:impl_std_error_using_macro
Sep 9, 2022
Merged

Impl std error using macro#1136
apoelstra merged 1 commit intorust-bitcoin:masterfrom
Kixunil:impl_std_error_using_macro

Conversation

@Kixunil
Copy link
Copy Markdown
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
Copy Markdown
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.
@Kixunil Kixunil force-pushed the impl_std_error_using_macro branch from d18643b to 86218ad Compare September 8, 2022 19:37
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants