Skip to content

Commit abd819e

Browse files
committed
fix: clippy warnings.
1 parent 83f0d39 commit abd819e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tasks/ast_codegen/src/generators/ast_kind.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl Generator for AstKindGenerator {
110110
_ => None,
111111
})
112112
.filter(blacklist)
113-
.chain(aliased_nodes().into_iter())
113+
.chain(aliased_nodes())
114114
.collect();
115115

116116
let types: Vec<Variant> =

tasks/ast_codegen/src/main.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
196196
let output_dir = output_dir()?;
197197
let outputs: HashMap<_, _> = outputs.into_iter().collect();
198198

199-
{ // write `span.rs` file
199+
{
200+
// write `span.rs` file
200201
let output = outputs[ImplGetSpanGenerator.name()].as_one();
201202
let span_content = pprint(output);
202203

@@ -206,7 +207,8 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
206207
file.write_all(span_content.as_bytes())?;
207208
}
208209

209-
{ // write `ast_kind.rs` file
210+
{
211+
// write `ast_kind.rs` file
210212
let output = outputs[AstKindGenerator.name()].as_one();
211213
let span_content = pprint(output);
212214

@@ -216,7 +218,6 @@ fn main() -> std::result::Result<(), Box<dyn std::error::Error>> {
216218
file.write_all(span_content.as_bytes())?;
217219
}
218220

219-
220221
// NOTE: Print AstKind
221222
// println!(
222223
// "{}",

0 commit comments

Comments
 (0)