-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add lint: unneeded &mut self
methods for Query
#107
Comments
Thanks for the suggestion! This was previously suggested in #37, so I'm going to close this as a duplicate. |
I thought Edit: Does #37 intend to just check whether e.g. |
Good point, I'll keep this separate then. |
The following code compiles without warning:
however, it should be written as:
This also applies to cases like
for ... in &mut q
,iter_combinations_mut
,get_mut
, etc. The linter should suggest using&self
counterparts and ideally remove unnecessarymut
from the variable.The text was updated successfully, but these errors were encountered: