]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/arithmetic.rs
MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy
[rust.git] / clippy_lints / src / arithmetic.rs
index 9e0d114569e8af86572acb51e3e5a5a449c3e5be..1cca897e73900b9eaa11fde39574f522d2585387 100644 (file)
@@ -63,8 +63,8 @@ fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr) {
                 return;
             }
         }
-        match &expr.node {
-            hir::ExprKind::Binary(op, l, r) => {
+        match &expr.kind {
+            hir::ExprKind::Binary(op, l, r) | hir::ExprKind::AssignOp(op, l, r) => {
                 match op.node {
                     hir::BinOpKind::And
                     | hir::BinOpKind::Or