-
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
new lint [single_call_fn
]
#10951
new lint [single_call_fn
]
#10951
Conversation
r? @giraffate (rustbot has picked a reviewer for you, use r? to override) |
Should we have a test with closures as well? |
Good point. It should not lint on those Good news: It already doesn't lint closures :) added the tests though |
☔ The latest upstream changes (presumably #10934) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
Overall looks good, thanks! I made small comments.
77d1cc5
to
334c483
Compare
☔ The latest upstream changes (presumably #10925) made this pull request unmergeable. Please resolve the merge conflicts. |
Oh we could also use a test showing that this does not lint on |
Yes, it should not do that and there's currently no check for if it's |
@bors r+ Thanks! |
new lint [`single_call_fn`] Closes #10861 changelog: New lint [`single_call_fn`]
💔 Test failed - checks-action_test |
@giraffate, please approve again :D |
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
1 similar comment
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Closes #10861
changelog: New lint [
single_call_fn
]