diff options
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index 19d5594f5..f8b34638b 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -68,7 +68,7 @@ fn generate_nodes(kinds: KindsSrc<'_>, grammar: AstSrc<'_>) -> Result<String> { | |||
68 | .iter() | 68 | .iter() |
69 | .map(|node| { | 69 | .map(|node| { |
70 | let name = format_ident!("{}", node.name); | 70 | let name = format_ident!("{}", node.name); |
71 | let kind = format_ident!("{}", to_upper_snake_case(&name.to_string())); | 71 | let kind = format_ident!("{}", to_upper_snake_case(node.name)); |
72 | let traits = node.traits.iter().map(|trait_name| { | 72 | let traits = node.traits.iter().map(|trait_name| { |
73 | let trait_name = format_ident!("{}", trait_name); | 73 | let trait_name = format_ident!("{}", trait_name); |
74 | quote!(impl ast::#trait_name for #name {}) | 74 | quote!(impl ast::#trait_name for #name {}) |