Skip to content

Commit 13c7361

Browse files
committed
fix variable name
1 parent 8e9fa96 commit 13c7361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/and_then_then_some.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl<'tcx> LateLintPass<'tcx> for AndThenThenSome {
4444
// TODO: check if type of reciever is diagnostic item Option?
4545
if is_and_then(cx, expr) {
4646
if let Some((closure_args, predicate)) = then_some_closure_arg(cx, arg) {
47-
show_sugg(cx, expr.span, selfarg, closure_args, predicate);
47+
show_sugg(cx, expr.span, recv_or_self, closure_args, predicate);
4848
}
4949
}
5050
},

0 commit comments

Comments
 (0)