diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-11-02 17:01:56 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-11-02 17:24:19 +0100 |
| commit | 95dc7be92f8087ae3c8b9532f2674dabceee3d4d (patch) | |
| tree | ef0c270a62fecc20762256ced06e1a8db9ccb74c /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | 2e907aa90c67d73fadc9be54c6609f618045c10c (diff) | |
| parent | 01a0a3666681b88c3cab5ffc440bdd74352093dd (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.rs | 4 |
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 dea432fdbd5..9256119e6a4 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 |
