Update clippy_lints/src/needless_bool.rs

This commit is contained in:
Jane Lusby 2020-03-30 12:19:30 -07:00 committed by GitHub
parent ff9602515e
commit c8f3241177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ fn one_side_is_unary_not<'tcx>(left_side: &'tcx Expr<'_>, right_side: &'tcx Expr
let right = is_unary_not(right_side);
ExpressionInfoWithSpan {
one_side_is_unary_not: left.0 ^ right.0,
one_side_is_unary_not: left.0 != right.0,
left_span: left.1,
right_span: right.1,
}