-
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
manual_split_once
: lint manual iteration of SplitN
#8717
manual_split_once
: lint manual iteration of SplitN
#8717
Conversation
r? @xFrednet (rust-highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a question and a suggestion to add the limitations to docs, otherwise the changes look great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version already looks good to me. I like the suggestion to add a limitations
section to the docs, and then we can merge this. 👍
Thank you very much @dswij for the review!
5825cc0
to
c206098
Compare
c206098
to
4424aa4
Compare
Looks good to me, thank you for the update! 👍 @bors r=dswij,xFrednet |
📌 Commit 4424aa4 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog:
manual_split_once
: lint manual iteration ofSplitN
Now lints:
It suggests (minus leftover whitespace):
Currently only lints if the statements are next to each other, as detecting the various kinds of shadowing was tricky, so the following won't lint