Skip to content

Commit 41614fc

Browse files
committed
add Paren
1 parent 742cba3 commit 41614fc

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
@@ -498,6 +498,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
498498
(start, end)
499499
},
500500
TyKind::Infer => (Pat::Str("_"), Pat::Str("_")),
501+
TyKind::Paren(ty) => ast_ty_search_pat(ty),
501502
TyKind::TraitObject(_, trait_obj_syntax) => {
502503
if let TraitObjectSyntax::Dyn = trait_obj_syntax {
503504
(Pat::Str("dyn"), Pat::Str(""))

0 commit comments

Comments
 (0)