-
Notifications
You must be signed in to change notification settings - Fork 1.7k
handle another type of collapsible if-statement #15027
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
I'll take this one as I have already #14906 on my plate. |
clippy
to handle another type of collapsible if-statement… adhere to standard naming conventions for this project. Move code for said function out of the `CollapsibleIf` struct's `impl` block. Refactor code of said function to use `if let` chains instead of early returns. Add new test case for `collapsible_if` lint with the first condition being a binary operation. Refactor code to use the `Sugg` interface instead.
|
fixes #812
changelog: [
collapsible_if
]: handle another type of collapsible if-statement