-
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
auto-fix if_not_else
#13411
Comments
@Rudxain, there is no content in your op |
This comment has been minimized.
This comment has been minimized.
@Rudxain Is it supposed to contain some code? |
What I meant is that the example given: if !v.is_empty() {
a()
} else {
b()
} (and anything of the same form) should be auto-fixable. Trying to fix it manually is very error-prone for bigger blocks, and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Note
I'm unsure if this is a bug-report or feature-request
cargo clippy --fix
should swap the 2 blocksVersion
1.81.0
Additional Labels
No response
The text was updated successfully, but these errors were encountered: