mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +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 {
|
impl #impl_generics ::rustical_xml::EnumVariants for #ident #type_generics #where_clause {
|
||||||
const TAGGED_VARIANTS: &'static [(Option<::quick_xml::name::Namespace<'static>>, &'static str)] = &[];
|
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),*
|
#(#untagged_variants),*
|
||||||
].concat()
|
].concat()
|
||||||
@@ -231,7 +231,7 @@ impl Enum {
|
|||||||
#(#tagged_variants),*
|
#(#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()
|
[Self::TAGGED_VARIANTS,].concat()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user