Skip to content

Remove bool from const_assert#3280

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:09-02-const-assert
Sep 2, 2024
Merged

Remove bool from const_assert#3280
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:09-02-const-assert

Conversation

@tcharding
Copy link
Copy Markdown
Member

It was correctly pointed out during review of #3215 (when we made const_assert panic) that using a bool added no additional information.

Remove the bool and just use unit.

It was correctly pointed out during review of rust-bitcoin#3215 (when we made
`const_assert` panic) that using a `bool` added no additional
information.

Remove the `bool` and just use unit.
@github-actions github-actions bot added the C-internals PRs modifying the internals crate label Sep 1, 2024
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 c71b23d successfully ran local tests; lol sure

@Kixunil Kixunil changed the title Remove bool from cont_assert Remove bool from const_assert Sep 2, 2024
Copy link
Copy Markdown
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

ACK c71b23d

@apoelstra apoelstra merged commit 6301272 into rust-bitcoin:master Sep 2, 2024
@tcharding tcharding deleted the 09-02-const-assert branch September 5, 2024 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-internals PRs modifying the internals crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants