diff options
| author | Jaeyong Sung <jaeyong0201@gmail.com> | 2022-03-10 15:53:53 +0900 |
|---|---|---|
| committer | Jaeyong Sung <jaeyong0201@gmail.com> | 2022-03-10 15:53:53 +0900 |
| commit | 52d35dca6a91908c963c207cc93f2cf0f800dcea (patch) | |
| tree | 6498c2f614039665e709707d4cd7dc532ef21649 | |
| parent | 69161c6327aaa77dbc2d3cef34b06148d6715ec4 (diff) | |
| download | rust-52d35dca6a91908c963c207cc93f2cf0f800dcea.tar.gz rust-52d35dca6a91908c963c207cc93f2cf0f800dcea.zip | |
fix build error
| -rw-r--r-- | clippy_lints/src/only_used_in_recursion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/only_used_in_recursion.rs b/clippy_lints/src/only_used_in_recursion.rs index 7ec110295dc..2e5e990be44 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; } |
