diff --git a/instant-xml-macros/src/de.rs b/instant-xml-macros/src/de.rs index 9c6a28c..d0449ce 100644 --- a/instant-xml-macros/src/de.rs +++ b/instant-xml-macros/src/de.rs @@ -459,6 +459,7 @@ fn unnamed_field( let mut nested = deserializer.nested(data); let mut value: Option<#no_lifetime_type> = None; <#no_lifetime_type>::deserialize(&mut nested, &mut value)?; + nested.ignore()?; value } Some(Ok(node)) => return Err(Error::UnexpectedNode(format!("{:?}", node))),