Add tests for tuple enum variants

This commit is contained in:
Graham Esau 2019-09-07 15:25:06 +01:00
parent c2e8389e93
commit 07f4f68a02
4 changed files with 40 additions and 4 deletions

View file

@ -105,7 +105,7 @@ fn schema_for_enum(variants: &[Variant], cattrs: &attr::Container) -> TokenStrea
EnumTag::External => schema_for_external_tagged_enum(variants, cattrs),
EnumTag::None => schema_for_untagged_enum(variants, cattrs),
EnumTag::Internal { tag } => schema_for_internal_tagged_enum(variants, cattrs, tag),
_ => unimplemented!("Adjacent/internal tagged enums not yet supported."),
EnumTag::Adjacent => unimplemented!("Adjacent tagged enums not yet supported."),
}
}