about summary refs log tree commit diff
path: root/clippy_lints/src/mutable_debug_assertion.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2024-05-30 09:44:14 +0200
committerPhilipp Krones <hello@philkrones.com>2024-05-30 09:44:14 +0200
commit89037ea18f101e2e586feb81d2595a47ae42da46 (patch)
treee5934c662d0ace18bdc16cccb6c2342f69f3e5d7 /clippy_lints/src/mutable_debug_assertion.rs
parentbda742762157d33dc2b2b52c451bcbf4d5237f08 (diff)
parentda4b2127c0a144699b946eec3c8c9d4fd7050c17 (diff)
downloadrust-89037ea18f101e2e586feb81d2595a47ae42da46.tar.gz
rust-89037ea18f101e2e586feb81d2595a47ae42da46.zip
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/mutable_debug_assertion.rs')
-rw-r--r--clippy_lints/src/mutable_debug_assertion.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/clippy_lints/src/mutable_debug_assertion.rs b/clippy_lints/src/mutable_debug_assertion.rs
index e92ba93942e..563ce2d82ea 100644
--- a/clippy_lints/src/mutable_debug_assertion.rs
+++ b/clippy_lints/src/mutable_debug_assertion.rs
@@ -96,10 +96,6 @@ impl<'a, 'tcx> Visitor<'tcx> for MutArgVisitor<'a, 'tcx> {
                 self.found = true;
                 return;
             },
-            ExprKind::If(..) => {
-                self.found = true;
-                return;
-            },
             ExprKind::Path(_) => {
                 if let Some(adj) = self.cx.typeck_results().adjustments().get(expr.hir_id) {
                     if adj