xml serialize: Support flatten and Option<T>

This commit is contained in:
Lennart
2024-12-27 15:34:22 +01:00
parent c787a6e8f3
commit 9242557741
7 changed files with 82 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ impl<T: Value> XmlSerialize for T {
}
#[allow(refining_impl_trait)]
fn attributes<'a>(&self) -> Vec<quick_xml::events::attributes::Attribute<'a>> {
vec![]
fn attributes<'a>(&self) -> Option<Vec<quick_xml::events::attributes::Attribute<'a>>> {
None
}
}