We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e9fa96 commit 13c7361Copy full SHA for 13c7361
clippy_lints/src/and_then_then_some.rs
@@ -44,7 +44,7 @@ impl<'tcx> LateLintPass<'tcx> for AndThenThenSome {
44
// TODO: check if type of reciever is diagnostic item Option?
45
if is_and_then(cx, expr) {
46
if let Some((closure_args, predicate)) = then_some_closure_arg(cx, arg) {
47
- show_sugg(cx, expr.span, selfarg, closure_args, predicate);
+ show_sugg(cx, expr.span, recv_or_self, closure_args, predicate);
48
}
49
50
},
0 commit comments