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 unsafe qualifiers from as_mut_ptr and as_mut_ptr_range #26

Merged
merged 2 commits into from
May 15, 2022
Merged

Remove unsafe qualifiers from as_mut_ptr and as_mut_ptr_range #26

merged 2 commits into from
May 15, 2022

Conversation

yescallop
Copy link
Contributor

As the documentation of str::as_mut_ptr says, "It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8." The same should also apply to UCStr::as_mut_ptr and friends.

@starkat99 starkat99 merged commit 624b1d7 into starkat99:main May 15, 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