-
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
Add new lint obfuscated_if_else
#9148
Conversation
r? @flip1995 (rust-highfive has picked a reviewer for you, use r? to override) |
Just going to nitpick the name here. Basically the same lint applies to any combinations of [ |
I was trying to follow the naming guidelines of stating the thing that is wrong. What do you think about |
I think |
New lint suggests using `if .. else ..` instead of `.then_some(..).unwrap_or(..)`.
ee5e1da
to
9ff7c91
Compare
then_some_unwrap_or
obfuscated_if_else
Looks good. Thank you. @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Thanks @Jarcho ! |
part of #9100, additional commits could make it work with
then
andunwrap_or_else
as wellchangelog: Add new lint
obfuscated_if_else