Skip to content
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

Merged
merged 4 commits into from
Jan 21, 2019

Conversation

g-bartoszek
Copy link

…e" clause of an "if-else" statement


if let rustc::hir::Node::Expr(e) = parent_node {
if let ExprKind::If(_,_,_) = e.node {
return true;
Copy link
Contributor

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

Suggested change
return true;
return true;

@phansch phansch added the S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) label Jan 21, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Jan 21, 2019

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 21, 2019

📌 Commit 0a0792e has been approved by oli-obk

@bors
Copy link
Collaborator

bors commented Jan 21, 2019

⌛ Testing commit 0a0792e with merge da14e71...

bors added a commit that referenced this pull request Jan 21, 2019
…li-obk

needless bool lint suggestion is wrapped in brackets if it is an "els…

…e" clause of an "if-else" statement
@oli-obk
Copy link
Contributor

oli-obk commented Jan 21, 2019

@bors r- travis' rustfmt run is still unhappy

@oli-obk
Copy link
Contributor

oli-obk commented Jan 21, 2019

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.

oli-obk and others added 2 commits January 21, 2019 11:41
Co-Authored-By: g-bartoszek <grzegorz.bartoszek@thaumatec.com>
@oli-obk
Copy link
Contributor

oli-obk commented Jan 21, 2019

@bors r+

Thanks!

@bors
Copy link
Collaborator

bors commented Jan 21, 2019

📌 Commit 34785a1 has been approved by oli-obk

@bors
Copy link
Collaborator

bors commented Jan 21, 2019

⌛ Testing commit 34785a1 with merge 54978a5...

bors added a commit that referenced this pull request Jan 21, 2019
…li-obk

needless bool lint suggestion is wrapped in brackets if it is an "els…

…e" clause of an "if-else" statement
@bors
Copy link
Collaborator

bors commented Jan 21, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: oli-obk
Pushing 54978a5 to master...

@bors bors merged commit 34785a1 into rust-lang:master Jan 21, 2019
@g-bartoszek
Copy link
Author

@oli-obk Thanks for the review. Should #3481 be closed now?

@g-bartoszek g-bartoszek deleted the needless-bool-else-if-brackets branch January 21, 2019 12:23
@oli-obk
Copy link
Contributor

oli-obk commented Jan 21, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants