diff --git a/tasks/ast_tools/src/generators/ast_kind.rs b/tasks/ast_tools/src/generators/ast_kind.rs index cd57f02b73538..bd6c4ee2eee8a 100644 --- a/tasks/ast_tools/src/generators/ast_kind.rs +++ b/tasks/ast_tools/src/generators/ast_kind.rs @@ -96,8 +96,7 @@ impl Generator for AstKindGenerator { }) .collect_vec(); - let types: Vec = - have_kinds.iter().map(|(ident, _)| parse_quote!(#ident)).collect_vec(); + let types = have_kinds.iter().map(|(ident, _)| ident).collect_vec(); let kinds: Vec = have_kinds.iter().map(|(ident, typ)| parse_quote!(#ident(&'a #typ))).collect_vec();