aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 61d1be8..42ca410 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -31,6 +31,6 @@ pub fn serialize_json<W>(source: &str, stream: W) -> Result<(), Error> where W:
pub fn serialize_xml<W>(source: &str, stream: W) -> Result<(), Error> where W: Write {
let parsed = parse(source)?;
- serde_xml_rs::serialize(&parsed, stream)?;
+ serde_xml_rs::to_writer(stream, &parsed).map_err(failure::SyncFailure::new)?;
Ok(())
}