Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Aug 7, 2024
1 parent 6e766dd commit 65b0536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions crates/oxc_ast/src/generated/derive_clone_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
// To edit this generated file you have to edit `tasks/ast_codegen/src/generators/derive_clone_in.rs`

use oxc_allocator::{Allocator, CloneIn};

use crate::ast::*;

8 changes: 4 additions & 4 deletions tasks/ast_codegen/src/generators/derive_clone_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn derive_enum(def: &EnumDef) -> TokenStream {
},
)
};
impl_clone_in(&ty_ident, def.has_lifetime, alloc, body)
impl_clone_in(&ty_ident, def.has_lifetime, &alloc, &body)
}

fn derive_struct(def: &StructDef) -> TokenStream {
Expand All @@ -93,14 +93,14 @@ fn derive_struct(def: &StructDef) -> TokenStream {
};
(alloc_ident, quote!( #ty_ident #body ))
};
impl_clone_in(&ty_ident, def.has_lifetime, alloc, body)
impl_clone_in(&ty_ident, def.has_lifetime, &alloc, &body)
}

fn impl_clone_in(
ty_ident: &Ident,
has_lifetime: bool,
alloc: Ident,
body: TokenStream,
alloc: &Ident,
body: &TokenStream,
) -> TokenStream {
if has_lifetime {
quote! {
Expand Down

0 comments on commit 65b0536

Please sign in to comment.