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

Fix missing parens in suboptimal_flops suggestion #9394

Merged
merged 2 commits into from
Aug 30, 2022

Conversation

lukaslueg
Copy link
Contributor

@lukaslueg lukaslueg commented Aug 29, 2022

Fixes #9391. The problem is simple enough, I didn't check if the same problem occurs elsewhere, though.

changelog: fix missing parenthesis in suboptimal_flops suggestion

@rust-highfive
Copy link

r? @flip1995

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 29, 2022
@lukaslueg
Copy link
Contributor Author

Added a second commit that I think gets most cases where expressions were not properly parenthesized to be used for the suggested method call.

@Jarcho
Copy link
Contributor

Jarcho commented Aug 30, 2022

Thank you. @bors r+

@bors
Copy link
Collaborator

bors commented Aug 30, 2022

📌 Commit 9ffc5a5 has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 30, 2022

⌛ Testing commit 9ffc5a5 with merge 4df6032...

@bors
Copy link
Collaborator

bors commented Aug 30, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing 4df6032 to master...

@bors bors merged commit 4df6032 into rust-lang:master Aug 30, 2022
@lukaslueg lukaslueg deleted the issue9391 branch August 30, 2022 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clippy fix doesn't add required parentheses to cast
5 participants