mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 18:37:55 +00:00
Merge pull request #771 from elliottslaughter:internally_content_tagged
This commit is contained in:
@@ -494,7 +494,7 @@ fn deserialize_item_enum(type_ident: &syn::Ident,
|
||||
attr::EnumTag::External => {
|
||||
deserialize_externally_tagged_enum(type_ident, impl_generics, ty, variants, item_attrs)
|
||||
}
|
||||
attr::EnumTag::Internal(ref tag) => {
|
||||
attr::EnumTag::Internal { ref tag } => {
|
||||
deserialize_internally_tagged_enum(type_ident,
|
||||
impl_generics,
|
||||
ty,
|
||||
@@ -502,6 +502,7 @@ fn deserialize_item_enum(type_ident: &syn::Ident,
|
||||
item_attrs,
|
||||
tag)
|
||||
}
|
||||
attr::EnumTag::Adjacent { .. } => unimplemented!(),
|
||||
attr::EnumTag::None => {
|
||||
deserialize_untagged_enum(type_ident, impl_generics, ty, variants, item_attrs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user