diff options
| author | Philipp Krones <hello@philkrones.com> | 2024-09-22 20:41:44 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2024-09-22 20:51:17 +0200 |
| commit | d140e26cc0d80ad79e0073acfb1a8770bd7972f0 (patch) | |
| tree | 60c41883f602f6a662c62cffaea5ef93614456fa /clippy_lints/src/mutable_debug_assertion.rs | |
| parent | 249210e8d86a4de347def1be559dfa79d346cb9f (diff) | |
| parent | abdf173ef2972033e1b5ac78e1bbc886b7f871c1 (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 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 |
