rust-clippy/clippy_lints
bors 2e4a11ea77 Auto merge of #13338 - CoCo-Japan-pan:nonminimal_bool_casted, r=Centri3
fix incorrect suggestion for `!(a >= b) as i32 == c`

fixes #12761

The expression `!(a >= b) as i32 == c` got simplified to `a < b as i32 == c`, but this is a syntax error.
The result we want is `(a < b) as i32 == c`.
This is fixed by adding a parenthesis to the suggestion given in `check_simplify_not` when the boolean expression is casted.

changelog: [`nonminimal_bool`]: fix incorrect suggestion for `!(a >= b) as i32 == c`
2024-10-28 13:58:16 +00:00
..
src Auto merge of #13338 - CoCo-Japan-pan:nonminimal_bool_casted, r=Centri3 2024-10-28 13:58:16 +00:00
Cargo.toml Bump Clippy version -> 0.1.84 2024-10-18 13:25:50 +02:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.