Skip to content

Commit

Permalink
remove the underline of __body
Browse files Browse the repository at this point in the history
  • Loading branch information
zao111222333 committed Feb 11, 2025
1 parent 780b391 commit b82d4a9
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 @@ -277,9 +277,9 @@ fn borrowed_lifetimes(cont: &Container) -> BorrowedLifetimes {
fn validate_body(cont: &Container, body: Stmts) -> TokenStream {
if let Some(vaildate) = cont.attrs.vaildate() {
quote! {
let __body = { #body }?;
#vaildate(&__body).map_err(_serde::de::Error::custom)?;
Ok(__body)
let body = { #body }?;
#vaildate(&body).map_err(_serde::de::Error::custom)?;
Ok(body)
}
} else {
quote! { #body }
Expand Down

0 comments on commit b82d4a9

Please sign in to comment.