Skip to content

Commit 3bb73fd

Browse files
committed
change visitor name to OppVisitor
1 parent b780353 commit 3bb73fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/if_let_mutex.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl LateLintPass<'_, '_> for IfLetMutex {
4646
arm_lock: false,
4747
cx,
4848
};
49-
let mut op_visit = IfLetMutexVisitor {
49+
let mut op_visit = OppVisitor {
5050
op_mutex: false,
5151
op_lock: false,
5252
cx,
@@ -80,13 +80,13 @@ impl LateLintPass<'_, '_> for IfLetMutex {
8080
}
8181

8282
/// Checks if `Mutex::lock` is called in the `if let _ = expr.
83-
pub struct IfLetMutexVisitor<'tcx, 'l> {
83+
pub struct OppVisitor<'tcx, 'l> {
8484
pub op_mutex: bool,
8585
pub op_lock: bool,
8686
pub cx: &'tcx LateContext<'tcx, 'l>,
8787
}
8888

89-
impl<'tcx, 'l> Visitor<'tcx> for IfLetMutexVisitor<'tcx, 'l> {
89+
impl<'tcx, 'l> Visitor<'tcx> for OppVisitor<'tcx, 'l> {
9090
type Map = Map<'tcx>;
9191

9292
fn visit_expr(&mut self, expr: &'tcx Expr<'_>) {

0 commit comments

Comments
 (0)