-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Incorrect use_self
warning
#1993
Comments
Awesome. Currently we bail out if the type has any lifetimes. That means we don't lint some cases that should be linted. To fix this once and for all you'd need to remove the current lifetime check on the impl, and instead check whether the found path does not only match by name, but also by the lifetime and generics. |
Cool okay, sounds straightforward enough--I'll get started on this tomorrow. |
I was looking at the |
Yes, it's fixed. Updated playground |
I believe I've come across a case where clippy gives a
use_self
warning but shouldn't:(playground link)
It's possible this is actually correct and it just wants me to specify
Self
with different params in which case I'm just not sure what the syntax is for that.Potentially related, I'd actually be interested in helping out with Clippy. If this seems like an easy issue to get started on I'd be happy to try to fix it myself!
The text was updated successfully, but these errors were encountered: