From 52d35dca6a91908c963c207cc93f2cf0f800dcea Mon Sep 17 00:00:00 2001 From: Jaeyong Sung Date: Thu, 10 Mar 2022 15:53:53 +0900 Subject: [PATCH] fix build error --- clippy_lints/src/only_used_in_recursion.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/only_used_in_recursion.rs b/clippy_lints/src/only_used_in_recursion.rs index 7ec110295dc8..2e5e990be447 100644 --- a/clippy_lints/src/only_used_in_recursion.rs +++ b/clippy_lints/src/only_used_in_recursion.rs @@ -502,7 +502,7 @@ impl<'tcx> SideEffectVisit<'tcx> { if let ExprKind::Path(QPath::TypeRelative(ty, segment)) = callee.kind; if segment.ident == self.fn_ident; if let TyKind::Path(QPath::Resolved(_, path)) = ty.kind; - if let Res::SelfTy(..) = path.res; + if let Res::SelfTy{ .. } = path.res; then { is_recursive = true; }