Skip to content

units: Seal the Integer trait#3724

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:12-11-seal-integer-trait
Dec 14, 2024
Merged

units: Seal the Integer trait#3724
apoelstra merged 1 commit intorust-bitcoin:masterfrom
tcharding:12-11-seal-integer-trait

Conversation

@tcharding
Copy link
Copy Markdown
Member

This trait is an internal thing, users should never implement it.

@github-actions github-actions Bot added the C-units PRs modifying the units crate label Dec 11, 2024
This trait is an internal thing, users should never implement it.
@tcharding tcharding force-pushed the 12-11-seal-integer-trait branch from d9090c5 to 4cccbfd Compare December 12, 2024 04:16
@tcharding tcharding added the API break This PR requires a version bump for the next release label Dec 12, 2024
Copy link
Copy Markdown
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

utACK 4cccbfd

@apoelstra
Copy link
Copy Markdown
Member

Yeah, agreed. Easy to unseal if users demand it, but it's not clear that we want them to try "hacking in" their own integer types into our parsing logic.

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 4cccbfd; successfully ran local tests

@apoelstra apoelstra merged commit 834010d into rust-bitcoin:master Dec 14, 2024
@tcharding tcharding deleted the 12-11-seal-integer-trait branch December 27, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API break This PR requires a version bump for the next release C-units PRs modifying the units crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants