Skip to content

Commit 2de81f5

Browse files
committed
Infer is a unit variant
1 parent a4dbbc9 commit 2de81f5

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
@@ -446,7 +446,7 @@ fn ast_ty_search_pat(ty: &ast::Ty) -> (Pat, Pat) {
446446
TyKind::Tup([head, .., tail]) => (ast_ty_search_pat(head).0, ast_ty_search_pat(tail).1),
447447
TyKind::OpaqueDef(..) => (Pat::Str("impl"), Pat::Str("")),
448448
TyKind::Path(qpath) => qpath_search_pat(&qpath),
449-
TyKind::Infer(()) => (Pat::Str("_"), Pat::Str("_")),
449+
TyKind::Infer => (Pat::Str("_"), Pat::Str("_")),
450450
TyKind::TraitObject(_, tagged_ptr) if let TraitObjectSyntax::Dyn = tagged_ptr.tag() => {
451451
(Pat::Str("dyn"), Pat::Str(""))
452452
},

0 commit comments

Comments
 (0)