-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[aptos-framework] Fix needless mutable references and borrows #14656
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
11b5882
to
4be5108
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14656 +/- ##
=======================================
Coverage 59.8% 59.8%
=======================================
Files 851 851
Lines 207415 207415
=======================================
Hits 124184 124184
Misses 83231 83231
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
981068f
to
f778db8
Compare
4be5108
to
f2301f9
Compare
9ed494c
to
e39b231
Compare
f2301f9
to
f645ed6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
In this PR, we fix
move lint
violations in the aptos framework for the lint rule introduced here: #14651In essence, any
&mut
andborrow_global_mut
that do not need to be mutable, and can be replaced by&
andborrow_global
respectively, are found and suggested by the new lint checker. This PR is a result of applying those suggestions.Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
Existing aptos framework tests were run using both compiler v1 and v2.
Key Areas to Review
Any change that does not preserve the intended semantics of the original code.