Skip to content

Commit 09506c4

Browse files
committed
Infer is a unit variant
1 parent 8f68c89 commit 09506c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/check_proc_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
443443
TyKind::Tup([head, .., tail]) => (ast_ty_search_pat(head).0, ast_ty_search_pat(tail).1),
444444
TyKind::OpaqueDef(..) => (Pat::Str("impl"), Pat::Str("")),
445445
TyKind::Path(qpath) => qpath_search_pat(&qpath),
446-
TyKind::Infer(()) => (Pat::Str("_"), Pat::Str("_")),
446+
TyKind::Infer => (Pat::Str("_"), Pat::Str("_")),
447447
TyKind::TraitObject(_, tagged_ptr) if let TraitObjectSyntax::Dyn = tagged_ptr.tag() => {
448448
(Pat::Str("dyn"), Pat::Str(""))
449449
},

0 commit comments

Comments
 (0)