Skip to content

Commit 2ccce8d

Browse files
lolbinarycatCentri3
andcommitted
adjust variable names
Co-authored-by: Catherine Flores <catherine.3.flores@gmail.com>
1 parent 360cf82 commit 2ccce8d

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
@@ -40,7 +40,7 @@ declare_lint_pass!(AndThenThenSome => [AND_THEN_THEN_SOME]);
4040
impl<'tcx> LateLintPass<'tcx> for AndThenThenSome {
4141
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) {
4242
match expr.kind {
43-
ExprKind::MethodCall(_, selfarg, [arg], _) | ExprKind::Call(_, [selfarg, arg]) => {
43+
ExprKind::MethodCall(_, recv_or_self, [arg], _) | ExprKind::Call(_, [recv_or_self, arg]) => {
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) {

0 commit comments

Comments
 (0)