-
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
needless bool lint suggestion is wrapped in brackets if it is an "els… #3680
needless bool lint suggestion is wrapped in brackets if it is an "els… #3680
Conversation
…e" clause of an "if-else" statement
clippy_lints/src/needless_bool.rs
Outdated
|
||
if let rustc::hir::Node::Expr(e) = parent_node { | ||
if let ExprKind::If(_,_,_) = e.node { | ||
return true; |
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.
Rustfmt on travis got hung up on this single space
return true; | |
return true; |
@bors r+ |
📌 Commit 0a0792e has been approved by |
…li-obk needless bool lint suggestion is wrapped in brackets if it is an "els… …e" clause of an "if-else" statement
@bors r- travis' rustfmt run is still unhappy |
So, other than rustfmt issues, this looks good to me. I opened #3683 for future improvements of preexisting issues that I saw while reviewing your PR. |
Co-Authored-By: g-bartoszek <grzegorz.bartoszek@thaumatec.com>
@bors r+ Thanks! |
📌 Commit 34785a1 has been approved by |
…li-obk needless bool lint suggestion is wrapped in brackets if it is an "els… …e" clause of an "if-else" statement
☀️ Test successful - checks-travis, status-appveyor |
Yes. I closed it. You can add "fixes #3481" to the main message in a pull request to make sure that merging your pull request automatically closes the referenced issue |
…e" clause of an "if-else" statement