diff options
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index f8b34638b..745a25862 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.rs | |||
@@ -40,7 +40,7 @@ fn generate_tokens(grammar: AstSrc<'_>) -> Result<String> { | |||
40 | pub(crate) syntax: SyntaxToken, | 40 | pub(crate) syntax: SyntaxToken, |
41 | } | 41 | } |
42 | impl std::fmt::Display for #name { | 42 | impl std::fmt::Display for #name { |
43 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 43 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
44 | std::fmt::Display::fmt(&self.syntax, f) | 44 | std::fmt::Display::fmt(&self.syntax, f) |
45 | } | 45 | } |
46 | } | 46 | } |
@@ -199,7 +199,7 @@ fn generate_nodes(kinds: KindsSrc<'_>, grammar: AstSrc<'_>) -> Result<String> { | |||
199 | enum_names.chain(node_names.clone()).map(|it| format_ident!("{}", it)).map(|name| { | 199 | enum_names.chain(node_names.clone()).map(|it| format_ident!("{}", it)).map(|name| { |
200 | quote! { | 200 | quote! { |
201 | impl std::fmt::Display for #name { | 201 | impl std::fmt::Display for #name { |
202 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { | 202 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
203 | std::fmt::Display::fmt(self.syntax(), f) | 203 | std::fmt::Display::fmt(self.syntax(), f) |
204 | } | 204 | } |
205 | } | 205 | } |