File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ impl LateLintPass<'_, '_> for IfLetMutex {
46
46
arm_lock : false ,
47
47
cx,
48
48
} ;
49
- let mut op_visit = IfLetMutexVisitor {
49
+ let mut op_visit = OppVisitor {
50
50
op_mutex : false ,
51
51
op_lock : false ,
52
52
cx,
@@ -80,13 +80,13 @@ impl LateLintPass<'_, '_> for IfLetMutex {
80
80
}
81
81
82
82
/// Checks if `Mutex::lock` is called in the `if let _ = expr.
83
- pub struct IfLetMutexVisitor < ' tcx , ' l > {
83
+ pub struct OppVisitor < ' tcx , ' l > {
84
84
pub op_mutex : bool ,
85
85
pub op_lock : bool ,
86
86
pub cx : & ' tcx LateContext < ' tcx , ' l > ,
87
87
}
88
88
89
- impl < ' tcx , ' l > Visitor < ' tcx > for IfLetMutexVisitor < ' tcx , ' l > {
89
+ impl < ' tcx , ' l > Visitor < ' tcx > for OppVisitor < ' tcx , ' l > {
90
90
type Map = Map < ' tcx > ;
91
91
92
92
fn visit_expr ( & mut self , expr : & ' tcx Expr < ' _ > ) {
You can’t perform that action at this time.
0 commit comments