mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 02:28:00 +00:00
Serialization of Haskell style enums
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,9 +502,7 @@ fn deserialize_item_enum(type_ident: &syn::Ident,
|
||||
item_attrs,
|
||||
tag)
|
||||
}
|
||||
attr::EnumTag::Adjacent(ref tag, ref content) => {
|
||||
panic!("FIXME: unimplemented")
|
||||
}
|
||||
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