don't corrupt the unused buffer when reading child

This commit is contained in:
Tom Dohrmann
2021-12-06 17:19:39 +01:00
parent 31440a76a5
commit d469128a48
2 changed files with 41 additions and 0 deletions

View File

@@ -160,6 +160,8 @@ pub fn parse(
// If substruct's start element found then deserialize substruct
let value = <#struct_name as ::yaserde::YaDeserialize>::deserialize(reader)?;
#value_label #action;
// read EndElement
let _event = reader.next_event()?;
}
}
})