Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zao111222333 committed Feb 13, 2025
1 parent 26580d5 commit 2409f74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions serde_derive/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn expand_derive_deserialize(input: &mut syn::DeriveInput) -> syn::Result<To
let params = Parameters::new(&cont);
let (de_impl_generics, _, ty_generics, where_clause) = split_with_de_lifetime(&params);
let body = Stmts(deserialize_body(&cont, &params));
let vaildated_body = validate_body(&cont, body);
let validated_body = validate_body(&cont, body);
let delife = params.borrowed.de_lifetime();
let serde = cont.attrs.serde_path();

Expand All @@ -41,7 +41,7 @@ pub fn expand_derive_deserialize(input: &mut syn::DeriveInput) -> syn::Result<To
__D: #serde::Deserializer<#delife>,
{
#used
#vaildated_body
#validated_body
}
}
}
Expand All @@ -55,7 +55,7 @@ pub fn expand_derive_deserialize(input: &mut syn::DeriveInput) -> syn::Result<To
where
__D: #serde::Deserializer<#delife>,
{
#vaildated_body
#validated_body
}

#fn_deserialize_in_place
Expand Down

0 comments on commit 2409f74

Please sign in to comment.