RS.CLIPPY.DOUBLE_COMPARISONS
Unnecessary double comparisons that can be simplified
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: double_comparisons. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for double comparisons that could be simplified to a single expression.
Why is this bad?
Readability.
Example
if x == y || x < y {}
Use instead:
if x <= y {}