Skip to content

Commit ebf2095

Browse files
Fix invalid condition in nonminimal_bool lint
1 parent 4c1d05c commit ebf2095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/booleans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ fn check_inverted_bool_in_condition(
148148
right: &Expr<'_>,
149149
) {
150150
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())
151+
|| !cx.typeck_results().node_types()[left.hir_id].is_bool()
152+
|| !cx.typeck_results().node_types()[right.hir_id].is_bool()
153153
{
154154
return;
155155
}

0 commit comments

Comments
 (0)