mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 19:22:26 +00:00
xml derive: Fix typing
This commit is contained in:
@@ -207,7 +207,7 @@ impl Enum {
|
||||
impl #impl_generics ::rustical_xml::EnumVariants for #ident #type_generics #where_clause {
|
||||
const TAGGED_VARIANTS: &'static [(Option<::quick_xml::name::Namespace<'static>>, &'static str)] = &[];
|
||||
|
||||
fn variant_names() -> Vec<(Option<Namespace<'static>>, &'static str)> {
|
||||
fn variant_names() -> Vec<(Option<::quick_xml::name::Namespace<'static>>, &'static str)> {
|
||||
[
|
||||
#(#untagged_variants),*
|
||||
].concat()
|
||||
@@ -231,7 +231,7 @@ impl Enum {
|
||||
#(#tagged_variants),*
|
||||
];
|
||||
|
||||
fn variant_names() -> Vec<(Option<Namespace<'static>>, &'static str)> {
|
||||
fn variant_names() -> Vec<(Option<::quick_xml::name::Namespace<'static>>, &'static str)> {
|
||||
[Self::TAGGED_VARIANTS,].concat()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user