Skip to content

Commit

Permalink
Rebase & fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
greyblake committed Jun 22, 2024
1 parent a65148a commit e787bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nutype_macros/src/common/gen/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub fn gen_impl_trait_serde_serialize(type_name: &TypeName, generics: &Generics)

// Turn `<T>` into `<T: Serialize>`
let all_generics_with_serialize_bound =
add_bound_to_all_type_params(&generics, syn::parse_quote!(::serde::Serialize));
add_bound_to_all_type_params(generics, syn::parse_quote!(::serde::Serialize));

let type_name_str = type_name.to_string();
quote! {
Expand Down Expand Up @@ -294,7 +294,7 @@ pub fn gen_impl_trait_serde_deserialize(
all_generics
};
let all_generics_without_bounds = strip_trait_bounds_on_generics(&all_generics);
let type_generics_without_bounds = strip_trait_bounds_on_generics(&type_generics);
let type_generics_without_bounds = strip_trait_bounds_on_generics(type_generics);

// Turn `<'de, T>` into `<'de, T: Deserialize<'de>>`
let all_generics_with_deserialize_bound =
Expand Down

0 comments on commit e787bc5

Please sign in to comment.