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 Vec::as_mut_slice public #348

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

jeandudey
Copy link
Contributor

It is already available through DerefMut so making it public doesn't do any harm and makes using slice mut methods a little bit clearer. For example:

(&mut s[..]).get_mut(i) vs s.as_mut_slice().get_mut(i)

newAM
newAM previously approved these changes Oct 30, 2023
@newAM
Copy link
Member

newAM commented Oct 30, 2023

@jeandudey can you rebase for the changelog update, or allow maintainers write access so I can do it for you?

Signed-off-by: Jean-Pierre De Jesus DIAZ <[email protected]>
@jeandudey
Copy link
Contributor Author

@newAM I've rebased the branch to fix the change log conflict

Copy link
Member

@newAM newAM left a comment

Choose a reason for hiding this comment

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

Thanks for the pull-request!

@newAM newAM added this pull request to the merge queue Oct 31, 2023
@newAM newAM removed this pull request from the merge queue due to a manual request Oct 31, 2023
@newAM newAM added this pull request to the merge queue Oct 31, 2023
Merged via the queue into rust-embedded:main with commit 45517a5 Oct 31, 2023
21 checks passed
@jeandudey jeandudey deleted the jeandudey/mut_slice branch November 2, 2023 10:40
@jeandudey
Copy link
Contributor Author

Thanks!

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