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

Remove &mut from datagram_mut #1583

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Conversation

Mark-Simulacrum
Copy link
Collaborator

The internal API is locking anyway, so there's no need for the &mut here. This doesn't change anything from being possible (you can .clone().datagram_mut(...) already), but it does mean that callers need that extra clone().

Note that this changes a technically stable API, though I doubt there are users (since datagrams themselves are unstable). The change is also likely to be compatible with most call sites.

Testing:

No particular testing.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The internal API is locking anyway, so there's no need for the &mut
here. This doesn't change anything from being *possible* (you can
`.clone().datagram_mut(...)` already), but it does mean that callers
need that extra clone().
@camshaft camshaft merged commit a6f4f89 into aws:main Dec 5, 2022
@Mark-Simulacrum Mark-Simulacrum deleted the skip-mut branch December 5, 2022 23:33
@toidiu toidiu mentioned this pull request Dec 8, 2022
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.

2 participants