Skip to content

Commit

Permalink
fix: remove redundant into_iter call.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Apr 15, 2024
1 parent c7e0153 commit d2c86ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_macros/src/ast_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fn transform_struct_fields(fields: &Fields) -> Punctuated<Field, Token![,]> {
let Fields::Named(fields) = &fields else {
panic!("`ast_node` attribute only works with named structure fields");
};
fields.named.iter().map(transform_struct_field).into_iter().collect()
fields.named.iter().map(transform_struct_field).collect()
}

fn transform_struct_field(field: &Field) -> Field {
Expand Down

0 comments on commit d2c86ff

Please sign in to comment.