Skip to content

Commit ad68303

Browse files
committed
Fix variable naming in is_in_method_chain for clarity
1 parent 727f860 commit ad68303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/dereference.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ fn deref_method_same_type<'tcx>(result_ty: Ty<'tcx>, arg_ty: Ty<'tcx>) -> bool {
729729
}
730730

731731
fn is_in_method_chain<'tcx>(cx: &LateContext<'tcx>, e: &'tcx Expr<'tcx>) -> bool {
732-
if let ExprKind::MethodCall(_, child, _, _) = e.kind {
733-
match child.kind {
732+
if let ExprKind::MethodCall(_, recv, _, _) = e.kind {
733+
match recv.kind {
734734
ExprKind::MethodCall(..)
735735
| ExprKind::Index(..)
736736
| ExprKind::Match(.., MatchSource::TryDesugar(..) | MatchSource::AwaitDesugar)

0 commit comments

Comments
 (0)