Skip to content

Commit

Permalink
fix: clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Aug 7, 2024
1 parent 8903776 commit ad4d955
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tasks/ast_codegen/src/generators/derive_get_span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ fn derive<const MUT: bool>(ctx: &LateCtx) -> TokenStream {
impl_trait(
&trait_ident,
&method_ident,
generics,
typ,
&generics,
&typ,
&self_type,
&result_type,
derive_enum(it, &method_ident),
&derive_enum(it, &method_ident),
)
};

Expand All @@ -77,11 +77,11 @@ fn derive<const MUT: bool>(ctx: &LateCtx) -> TokenStream {
impl_trait(
&trait_ident,
&method_ident,
generics,
typ,
&generics,
&typ,
&self_type,
&result_type,
derive_struct::<MUT>(it, &method_ident),
&derive_struct::<MUT>(it, &method_ident),
)
};
let impls: Vec<TokenStream> = ctx
Expand Down Expand Up @@ -137,11 +137,11 @@ fn derive_struct<const MUT: bool>(def: &StructDef, method: &Ident) -> TokenStrea
fn impl_trait(
trait_ident: &Ident,
method_ident: &Ident,
generics: Option<Generics>,
target_type: Type,
generics: &Option<Generics>,
target_type: &Type,
self_: &TokenStream,
result_type: &TokenStream,
body: TokenStream,
body: &TokenStream,
) -> TokenStream {
quote! {
endl!();
Expand Down

0 comments on commit ad4d955

Please sign in to comment.