diff --git a/instant-xml/src/impls.rs b/instant-xml/src/impls.rs index 7830ac3..0bad5ab 100644 --- a/instant-xml/src/impls.rs +++ b/instant-xml/src/impls.rs @@ -488,6 +488,16 @@ impl ToXml for Option { } } +impl ToXml for Box { + fn serialize( + &self, + field: Option>, + serializer: &mut Serializer, + ) -> Result<(), Error> { + self.as_ref().serialize(field, serializer) + } +} + fn encode(input: &str) -> Result, Error> { let mut result = String::with_capacity(input.len()); let mut last_end = 0;