We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b780353 commit 3bb73fdCopy full SHA for 3bb73fd
clippy_lints/src/if_let_mutex.rs
@@ -46,7 +46,7 @@ impl LateLintPass<'_, '_> for IfLetMutex {
46
arm_lock: false,
47
cx,
48
};
49
- let mut op_visit = IfLetMutexVisitor {
+ let mut op_visit = OppVisitor {
50
op_mutex: false,
51
op_lock: false,
52
@@ -80,13 +80,13 @@ impl LateLintPass<'_, '_> for IfLetMutex {
80
}
81
82
/// Checks if `Mutex::lock` is called in the `if let _ = expr.
83
-pub struct IfLetMutexVisitor<'tcx, 'l> {
+pub struct OppVisitor<'tcx, 'l> {
84
pub op_mutex: bool,
85
pub op_lock: bool,
86
pub cx: &'tcx LateContext<'tcx, 'l>,
87
88
89
-impl<'tcx, 'l> Visitor<'tcx> for IfLetMutexVisitor<'tcx, 'l> {
+impl<'tcx, 'l> Visitor<'tcx> for OppVisitor<'tcx, 'l> {
90
type Map = Map<'tcx>;
91
92
fn visit_expr(&mut self, expr: &'tcx Expr<'_>) {
0 commit comments