Closed 0xLucqs closed 3 months ago
Checks for double comparisons that could be simplified to a single expression.
Readability.
if x == y || x < y {}
Use instead:
if x <= y {}
https://rust-lang.github.io/rust-clippy/master/index.html#/double_comparisons
Hi, can I take this one?
Hey @renzobanegass! Thanks for showing interest. We've created an application for you to contribute to Cairo lint. Go check it out on OnlyDust!
Yes please do @renzobanegass
What it does
Checks for double comparisons that could be simplified to a single expression.
Why is this bad?
Readability.
Example
Use instead:
https://rust-lang.github.io/rust-clippy/master/index.html#/double_comparisons