mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-17 16:11:03 +00:00
Use spaces around =-sign like Rust does
This commit is contained in:
@@ -1371,8 +1371,8 @@ fn field_i(i: usize) -> Ident {
|
|||||||
Ident::new(format!("__field{}", i))
|
Ident::new(format!("__field{}", i))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function wraps the expression in `#[serde(deserialize_with="...")]` in
|
/// This function wraps the expression in `#[serde(deserialize_with = "...")]`
|
||||||
/// a trait to prevent it from accessing the internal `Deserialize` state.
|
/// in a trait to prevent it from accessing the internal `Deserialize` state.
|
||||||
fn wrap_deserialize_with(ident: &syn::Ident,
|
fn wrap_deserialize_with(ident: &syn::Ident,
|
||||||
params: &Parameters,
|
params: &Parameters,
|
||||||
field_ty: &syn::Ty,
|
field_ty: &syn::Ty,
|
||||||
|
|||||||
Reference in New Issue
Block a user