From e9a3e54910837b8cb4dce1bb476330dd3b1fd1d6 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 11 Nov 2019 09:24:12 -0800 Subject: MutImmutable -> Immutable, MutMutable -> Mutable, CaptureClause -> CaptureBy --- clippy_lints/src/mutable_debug_assertion.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clippy_lints/src/mutable_debug_assertion.rs') 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; -- cgit 1.4.1-3-g733a5