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

signature: remove AsMut bound on Repr #1144

Merged
merged 1 commit into from
Oct 30, 2022

Conversation

tarcieri
Copy link
Member

Without a Default bound (#1143) there's little purpose to having an AsMut bound on Repr, which would allow Default to construct an empty bytestring and AsMut used to write into it.

Given there isn't an obvious use case, fewer bounds are better.

Without a `Default` bound (#1143) there's little purpose to having an
`AsMut` bound on `Repr`, which would allow `Default` to construct an
empty bytestring and `AsMut` used to write into it.

Given there isn't an obvious use case, fewer bounds are better.
@tarcieri tarcieri merged commit f791730 into master Oct 30, 2022
@tarcieri tarcieri deleted the signature/remove-asmut-bound-on-repr branch October 30, 2022 03:05
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.

1 participant