Skip to content

Commit

Permalink
fix: clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Jun 25, 2024
1 parent 08a9d1e commit f115108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/ast_codegen/src/generators/ast_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Generator for AstKindGenerator {
_ => None,
})
.filter(blacklist)
.chain(aliased_nodes().into_iter())
.chain(aliased_nodes())
.collect();

let types: Vec<Variant> =
Expand Down
6 changes: 4 additions & 2 deletions tasks/ast_codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
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);

Expand All @@ -206,7 +207,8 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
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);

Expand Down

0 comments on commit f115108

Please sign in to comment.