diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index 2c7c95620..ac27a0834 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -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() {