diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-01-27 20:21:37 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-01-27 20:26:35 +0100 |
| commit | 2bc2431fd18c212ca081f67f4d853645f83437f5 (patch) | |
| tree | c86f5bf3ad33a6dca050110cec70e0bc38fac1cd /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | a64940f948757ffe4b0705726b497b552801a93d (diff) | |
| parent | 54e929bddee5934c527894fabee8a2c48531a795 (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 d8647a99105..3ef0c663459 100644 --- a/clippy_lints/src/mutable_debug_assertion.rs +++ b/clippy_lints/src/mutable_debug_assertion.rs @@ -92,10 +92,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 |
