Skip to content

Commit

Permalink
format quote
Browse files Browse the repository at this point in the history
  • Loading branch information
zao111222333 committed Feb 13, 2025
1 parent e611d5f commit 26580d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serde_derive/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ fn validate_body(cont: &Container, body: Stmts) -> TokenStream {
.collect();
if cont.attrs.validator() {
validations.push(
quote! {validator::Validate::validate(&body).map_err(#serde::de::Error::custom)?;},
quote! {
validator::Validate::validate(&body).map_err(#serde::de::Error::custom)?;
},
);
}
if validations.is_empty() {
Expand Down

0 comments on commit 26580d5

Please sign in to comment.