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

Make BufMut an unsafe trait #432

Merged
merged 1 commit into from Oct 16, 2020
Merged

Make BufMut an unsafe trait #432

merged 1 commit into from Oct 16, 2020

Conversation

carllerche
Copy link
Member

Users of BufMut are unable to defend against incorrect implementations
of BufMut, this makes the trait unsafe to implement.

Fixes #329

cc @Kixunil

Users of `BufMut` are unable to defend against incorrect implementations
of `BufMut`, this makes the trait unsafe to implement.

Fixes #329
@carllerche carllerche merged commit ced0507 into master Oct 16, 2020
@carllerche carllerche deleted the unsafe-buf-mut branch October 16, 2020 22:45
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.

Maybe BufMut trait should be unsafe?
2 participants