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

New lint bool_to_int_with_if #9412

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Conversation

xFrednet
Copy link
Member

@xFrednet xFrednet commented Sep 1, 2022

This is a rebased version of #9086 I could sadly not push directly push to the PR branch as it's protected.

The lint implementation comes from @jst-r. Thank you for the work you put into this :)


Closes: #8131
Closes: #9086

changelog: Add lint [bool_to_int_with_if]

r? @ghost

@xFrednet
Copy link
Member Author

xFrednet commented Sep 1, 2022

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 1, 2022

📌 Commit b1f86a4 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 1, 2022

⌛ Testing commit b1f86a4 with merge 334be18...

@bors
Copy link
Collaborator

bors commented Sep 1, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing 334be18 to master...

@bors bors merged commit 334be18 into rust-lang:master Sep 1, 2022
@xFrednet xFrednet deleted the jst-r-bool-to-int-lint branch September 10, 2022 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggest casting bool to int instead of using if statement.
2 participants