-
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
single_match: suggest if
over if let
when possible
#6574
Conversation
r? @Manishearth (rust-highfive has picked a reviewer for you, use r? to override) |
if
over if let
when possible
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.
Mostly looks good, minor changes
Add: attempt to remove address of expressions from the scrutinee expression before adding references to the pattern
@bors r+ |
📌 Commit 36ff2f7 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
fixes: #173
changelog: single_match: suggest
if
overif let
when possible