From f1151085ed5cd8aea7b807e504b996f62f02b4b0 Mon Sep 17 00:00:00 2001 From: rzvxa Date: Tue, 25 Jun 2024 11:40:48 +0330 Subject: [PATCH] fix: clippy warnings. --- tasks/ast_codegen/src/generators/ast_kind.rs | 2 +- tasks/ast_codegen/src/main.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/ast_codegen/src/generators/ast_kind.rs b/tasks/ast_codegen/src/generators/ast_kind.rs index f15cb78a30407e..c1e05afbe46796 100644 --- a/tasks/ast_codegen/src/generators/ast_kind.rs +++ b/tasks/ast_codegen/src/generators/ast_kind.rs @@ -110,7 +110,7 @@ impl Generator for AstKindGenerator { _ => None, }) .filter(blacklist) - .chain(aliased_nodes().into_iter()) + .chain(aliased_nodes()) .collect(); let types: Vec = diff --git a/tasks/ast_codegen/src/main.rs b/tasks/ast_codegen/src/main.rs index ba0a00e3ab13b5..6754fa22dc1a19 100644 --- a/tasks/ast_codegen/src/main.rs +++ b/tasks/ast_codegen/src/main.rs @@ -196,7 +196,8 @@ fn main() -> std::result::Result<(), Box> { let output_dir = output_dir()?; let outputs: HashMap<_, _> = outputs.into_iter().collect(); - { // write `span.rs` file + { + // write `span.rs` file let output = outputs[ImplGetSpanGenerator.name()].as_one(); let span_content = pprint(output); @@ -206,7 +207,8 @@ fn main() -> std::result::Result<(), Box> { file.write_all(span_content.as_bytes())?; } - { // write `ast_kind.rs` file + { + // write `ast_kind.rs` file let output = outputs[AstKindGenerator.name()].as_one(); let span_content = pprint(output);