From 68a54f6011c897d9a4533430cba48fd0248da731 Mon Sep 17 00:00:00 2001 From: Devin R Date: Wed, 18 Mar 2020 18:33:59 -0400 Subject: [PATCH] change visitor name to OppVisitor --- clippy_lints/src/if_let_mutex.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/if_let_mutex.rs b/clippy_lints/src/if_let_mutex.rs index 5f83d952fe3a..83c1bce39854 100644 --- a/clippy_lints/src/if_let_mutex.rs +++ b/clippy_lints/src/if_let_mutex.rs @@ -46,7 +46,7 @@ impl LateLintPass<'_, '_> for IfLetMutex { arm_lock: false, cx, }; - let mut op_visit = IfLetMutexVisitor { + let mut op_visit = OppVisitor { op_mutex: false, op_lock: false, cx, @@ -80,13 +80,13 @@ impl LateLintPass<'_, '_> for IfLetMutex { } /// Checks if `Mutex::lock` is called in the `if let _ = expr. -pub struct IfLetMutexVisitor<'tcx, 'l> { +pub struct OppVisitor<'tcx, 'l> { pub op_mutex: bool, pub op_lock: bool, pub cx: &'tcx LateContext<'tcx, 'l>, } -impl<'tcx, 'l> Visitor<'tcx> for IfLetMutexVisitor<'tcx, 'l> { +impl<'tcx, 'l> Visitor<'tcx> for OppVisitor<'tcx, 'l> { type Map = Map<'tcx>; fn visit_expr(&mut self, expr: &'tcx Expr<'_>) {