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-06-27 18:37:16 +0200
committerPhilipp Krones <hello@philkrones.com>2024-06-27 18:49:59 +0200
commite9e7a815a78c0697c409fdcfeeaf0d20444f1733 (patch)
tree40e594457a09345bdb6e6f52ec5093372448d745 /clippy_lints/src/mutable_debug_assertion.rs
parentf90d702e66645bad4308acd073ae88ca405984bf (diff)
parentaaaa9264dcd7d4054aa7c1b955ed1c8510924cae (diff)
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