mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-27 04:50:36 +00:00
Rename identifier::generate_body -> deserialize_custom
This commit is contained in:
parent
ad2b064b0a
commit
20fc31c78a
@ -323,7 +323,7 @@ fn deserialize_body(cont: &Container, params: &Parameters) -> Fragment {
|
||||
}
|
||||
} else {
|
||||
match &cont.data {
|
||||
Data::Enum(variants) => identifier::generate_body(params, variants, &cont.attrs),
|
||||
Data::Enum(variants) => identifier::deserialize_custom(params, variants, &cont.attrs),
|
||||
Data::Struct(_, _) => unreachable!("checked in serde_derive_internals"),
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ use quote::{quote, ToTokens};
|
||||
|
||||
// Generates `Deserialize::deserialize` body for an enum with
|
||||
// `serde(field_identifier)` or `serde(variant_identifier)` attribute.
|
||||
pub(super) fn generate_body(
|
||||
pub(super) fn deserialize_custom(
|
||||
params: &Parameters,
|
||||
variants: &[Variant],
|
||||
cattrs: &attr::Container,
|
||||
|
Loading…
x
Reference in New Issue
Block a user