Skip to content

Commit f400c35

Browse files
committed
add Paren
1 parent cad7e00 commit f400c35

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
@@ -488,6 +488,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
488488
(start, end)
489489
},
490490
TyKind::Infer => (Pat::Str("_"), Pat::Str("_")),
491+
TyKind::Paren(ty) => ast_ty_search_pat(ty),
491492
TyKind::TraitObject(_, trait_obj_syntax) => {
492493
if let TraitObjectSyntax::Dyn = trait_obj_syntax {
493494
(Pat::Str("dyn"), Pat::Str(""))

0 commit comments

Comments
 (0)