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

Cleaned Up Unused Mutability #1785

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Cleaned Up Unused Mutability #1785

merged 1 commit into from
Mar 15, 2024

Conversation

parnavh
Copy link
Contributor

@parnavh parnavh commented Nov 22, 2023

Eliminated unused mutability by reverting the variable vec1 to an immutable state.

The introduction of mut in the initial commit was essential, but subsequent changes have made mutability unnecessary.

This refinement streamlines the code by acknowledging that the variable no longer necessitates mutability. The adjustment not only improves code clarity and maintainability but also eliminates the variable does not need to be mutable warning, enhancing the overall code quality.

@shadows-withal shadows-withal merged commit a449d39 into rust-lang:main Mar 15, 2024
5 checks passed
@shadows-withal
Copy link
Member

@all-contributors please add @parnavh for content

Copy link
Contributor

@shadows-withal

I've put up a pull request to add @parnavh! 🎉

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.

3 participants