You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a function with &mut self as an argument, and actually never use self as mutable inside it wont give us any compiler or clippy warning...
here is an example
What it does
Having a function with
&mut self
as an argument, and actually never useself
as mutable inside it wont give us any compiler or clippy warning...here is an example
I think in this case clippy should say
self doesn't need to be mutable
.Lint Name
unused_mutable_self
Category
correctness
Advantage
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: