forked from NationTech/harmony
wip: RawXml ser/de works well, still a few more complex cases to test but seems good wnough for the opnsense config case
This commit is contained in:
@@ -8,7 +8,8 @@ impl YaSerialize for Interfaces {
|
||||
&self,
|
||||
writer: &mut yaserde::ser::Serializer<W>,
|
||||
) -> Result<(), String> {
|
||||
todo!()
|
||||
writer.write("Interfaces serializer TODO");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn serialize_attributes(
|
||||
@@ -88,7 +89,7 @@ impl YaDeserialize for Interfaces {
|
||||
}
|
||||
let peek = reader.peek()?;
|
||||
|
||||
let mut read_next = true;
|
||||
let read_next = true;
|
||||
if let XmlEvent::EndElement { name } = peek {
|
||||
if name.local_name == "interfaces" {
|
||||
println!("Got endElement interfaces, not reading next event");
|
||||
|
||||
Reference in New Issue
Block a user