Skip to content

Commit 4e94fb1

Browse files
committed
add Paren
1 parent 43fa413 commit 4e94fb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
485485
(start, end)
486486
},
487487
TyKind::Infer => (Pat::Str("_"), Pat::Str("_")),
488+
TyKind::Paren(ty) => ast_ty_search_pat(ty),
488489
TyKind::TraitObject(_, trait_obj_syntax) => {
489490
if let TraitObjectSyntax::Dyn = trait_obj_syntax {
490491
(Pat::Str("dyn"), Pat::Str(""))

0 commit comments

Comments
 (0)