We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nonminimal_bool
1 parent 4c1d05c commit ebf2095Copy full SHA for ebf2095
clippy_lints/src/booleans.rs
@@ -148,8 +148,8 @@ fn check_inverted_bool_in_condition(
148
right: &Expr<'_>,
149
) {
150
if expr_span.from_expansion()
151
- && (!cx.typeck_results().node_types()[left.hir_id].is_bool()
152
- || !cx.typeck_results().node_types()[right.hir_id].is_bool())
+ || !cx.typeck_results().node_types()[left.hir_id].is_bool()
+ || !cx.typeck_results().node_types()[right.hir_id].is_bool()
153
{
154
return;
155
}
0 commit comments