Skip to content

Commit c8f3241

Browse files
authored
Update clippy_lints/src/needless_bool.rs
1 parent ff96025 commit c8f3241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_bool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn one_side_is_unary_not<'tcx>(left_side: &'tcx Expr<'_>, right_side: &'tcx Expr
212212
let right = is_unary_not(right_side);
213213

214214
ExpressionInfoWithSpan {
215-
one_side_is_unary_not: left.0 ^ right.0,
215+
one_side_is_unary_not: left.0 != right.0,
216216
left_span: left.1,
217217
right_span: right.1,
218218
}

0 commit comments

Comments
 (0)