-
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
Fix FP with empty return for needless_return
lint
#6549
Conversation
r? @ebroto (rust-highfive has picked a reviewer for you, use r? to override) |
322f703
to
3975f66
Compare
☔ The latest upstream changes (presumably #6586) made this pull request unmergeable. Please resolve the merge conflicts. |
3975f66
to
46aa654
Compare
r? @phansch (I'm leaving the team, so I'm reassigning my PRs to other active members) |
@bors r+ thanks! |
📌 Commit 46aa654 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Add test for `needless_return` lint Just a follow up of #6549 that adds a test for this lint. changelog: none
This fixes a false positive in
needless_return
lint, when triggered in a closure usingreturn
statement without value.Fixes: #6501
changelog: none