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 {
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 < ' _ > ) {
You can’t perform that action at this time.
0 commit comments