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 if_not_else lint #3022

Merged
merged 1 commit into from
Dec 1, 2024
Merged

Fix if_not_else lint #3022

merged 1 commit into from
Dec 1, 2024

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Dec 1, 2024

Using negations in the if makes them a bit harder to read... and there is a lint for that :)

cargo clippy --workspace --exclude bindgen-integration --exclude tests_expectations -- -W clippy::if_not_else

Using negations in the `if` makes them a bit harder to read... and there is a lint for that :)

```
cargo clippy --workspace --exclude bindgen-integration --exclude tests_expectations -- -W clippy::if_not_else
```
@nyurik nyurik mentioned this pull request Dec 1, 2024
@pvdrz pvdrz added this pull request to the merge queue Dec 1, 2024
Merged via the queue into rust-lang:main with commit 4eb99c7 Dec 1, 2024
28 checks passed
@nyurik nyurik deleted the if_not_else branch December 1, 2024 20:05
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.

2 participants