Always true expressions in if expressions #1593
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
L-correctness
Lint: Belongs in the correctness lint group
T-middle
Type: Probably requires verifiying types
I'd like Clippy to find this problem in the code, this expression is always true, and Clippy should also suggest the usage of && here instead:
Another example:
The text was updated successfully, but these errors were encountered: