use anytime FieldType methods

This commit is contained in:
Marc-Antoine Arnaud
2018-04-10 11:52:37 +02:00
parent 1c867a6ff1
commit 513e546836
3 changed files with 75 additions and 95 deletions

View File

@@ -75,7 +75,7 @@ pub fn serialize(data_struct: &DataStruct, name: &Ident, root: &String) -> Token
},
};
}),
Some(FieldType::FieldTypeVec) =>
Some(FieldType::FieldTypeVec{..}) =>
Some(quote!{
for item in &self.#label {
let start_event = XmlEvent::start_element(#label_name);