-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Extend useless_asref
lint on map(clone)
#12105
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
Conversation
b26362a
to
f92809b
Compare
And fixed dogfood failure. I forget this one every time... |
As long as the lints work independently of each other and don't invalidate each other's diagnostics (and especially suggestions), they can easily coexist. Otherwise (if one lint rules out the other) we must decide which one is preferable and remove those cases from the other lint. |
Ok so in this case I'll limit the |
☔ The latest upstream changes (presumably #12109) made this pull request unmergeable. Please resolve the merge conflicts. |
…nd method call is `as_ref`.
f92809b
to
103e888
Compare
87c5e31
to
f7ef9a6
Compare
Thank you. Stellar work, you're on a roll! @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Thanks for the kind words and the blazing fast reviews! 😊 |
If you have code like:
the
as_ref
call is unneeded.Interestingly enough, this lint and
map_clone
are starting to share a same "space" where both lints warn about different things for the same code. Not sure what's the policy about such cases though...r? @llogiq
changelog: Extend
useless_asref
lint onmap(clone)