about summary refs log tree commit diff
path: root/clippy_lints/src/mutable_debug_assertion.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-11-11 09:24:12 -0800
committerManish Goregaokar <manishsmail@gmail.com>2019-11-11 10:58:39 -0800
commite9a3e54910837b8cb4dce1bb476330dd3b1fd1d6 (patch)
treeb140fa5ace9542ecac7794887cfbad3085b8bdfc /clippy_lints/src/mutable_debug_assertion.rs
parent79d3b30cd7726335f8f3d39946449163a1dc6bd7 (diff)
downloadrust-e9a3e54910837b8cb4dce1bb476330dd3b1fd1d6.tar.gz
rust-e9a3e54910837b8cb4dce1bb476330dd3b1fd1d6.zip
MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
-rw-r--r--clippy_lints/src/mutable_debug_assertion.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs
index 1184db0587b..6d955331add 100644
--- a/clippy_lints/src/mutable_debug_assertion.rs
+++ b/clippy_lints/src/mutable_debug_assertion.rs
@@ -128,7 +128,7 @@ impl<'a, 'tcx> MutArgVisitor<'a, 'tcx> {
 impl<'a, 'tcx> Visitor<'tcx> for MutArgVisitor<'a, 'tcx> {
     fn visit_expr(&mut self, expr: &'tcx Expr) {
         match expr.kind {
-            ExprKind::AddrOf(Mutability::MutMutable, _) => {
+            ExprKind::AddrOf(Mutability::Mutable, _) => {
                 self.found = true;
                 return;
             },
@@ -136,7 +136,7 @@ impl<'a, 'tcx> Visitor<'tcx> for MutArgVisitor<'a, 'tcx> {
                 if let Some(adj) = self.cx.tables.adjustments().get(expr.hir_id) {
                     if adj
                         .iter()
-                        .any(|a| matches!(a.target.kind, ty::Ref(_, _, Mutability::MutMutable)))
+                        .any(|a| matches!(a.target.kind, ty::Ref(_, _, Mutability::Mutable)))
                     {
                         self.found = true;
                         return;