Skip to content

Commit

Permalink
change visitor name to OppVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinR528 committed Mar 24, 2020
1 parent ccdb3cd commit 68a54f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clippy_lints/src/if_let_mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<'_>) {
Expand Down

0 comments on commit 68a54f6

Please sign in to comment.