Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Jul 2, 2024
1 parent e9ff6d4 commit f3c9676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn define_components(body: TokenStream) -> TokenStream {
}

{
let delegates_to_trait_name = format!("DelegatesTo{}", ast.components_ident.to_string(),);
let delegates_to_trait_name = format!("DelegatesTo{}", ast.components_ident);

let (delegates_to_trait, delegates_to_impl) = define_delegates_to_trait(
&Ident::new(&delegates_to_trait_name, Span::call_site()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ pub fn merge_generics(generics_a: &Generics, generics_b: &Generics) -> Generics
};

Generics {
lt_token: generics_a.lt_token.clone(),
lt_token: generics_a.lt_token,
params,
gt_token: generics_a.gt_token.clone(),
gt_token: generics_a.gt_token,
where_clause,
}
}

0 comments on commit f3c9676

Please sign in to comment.