mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-30 14:08:23 +00:00
xml: Remove generics from XmlSerialize
This commit is contained in:
@@ -104,12 +104,12 @@ impl<T: ValueDeserialize> XmlDeserialize for T {
|
||||
}
|
||||
|
||||
impl<T: ValueSerialize> XmlSerialize for T {
|
||||
fn serialize<W: std::io::Write>(
|
||||
fn serialize(
|
||||
&self,
|
||||
ns: Option<Namespace>,
|
||||
tag: Option<&[u8]>,
|
||||
namespaces: &HashMap<Namespace, &[u8]>,
|
||||
writer: &mut quick_xml::Writer<W>,
|
||||
writer: &mut quick_xml::Writer<&mut [u8]>,
|
||||
) -> std::io::Result<()> {
|
||||
let prefix = ns
|
||||
.map(|ns| namespaces.get(&ns))
|
||||
|
||||
Reference in New Issue
Block a user