]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/needless_bool.rs
ast/hir: Rename field-related structures
[rust.git] / clippy_lints / src / needless_bool.rs
index d795f12645794e2a2f6de2389e62737e8b8ae919..f283ff1715fb667df833c98cebc41039603d04ee 100644 (file)
@@ -195,7 +195,7 @@ struct ExpressionInfoWithSpan {
 }
 
 fn is_unary_not(e: &Expr<'_>) -> (bool, Span) {
-    if let ExprKind::Unary(UnOp::UnNot, operand) = e.kind {
+    if let ExprKind::Unary(UnOp::Not, operand) = e.kind {
         return (true, operand.span);
     }
     (false, e.span)