diff options
| author | Philipp A | 2019-03-30 16:40:22 +0100 | 
|---|---|---|
| committer | Philipp A | 2019-03-30 16:40:22 +0100 | 
| commit | 647d667b7cc63aa2f3ad3fa84c5d892bded0be5b (patch) | |
| tree | ff30e096f774e877cc11585b22daa0dc62361cbe /src/parser.rs | |
| parent | 380c6f1ca947dd22adab89961e451e2ecbcc5b10 (diff) | |
| download | rust-rst-647d667b7cc63aa2f3ad3fa84c5d892bded0be5b.tar.bz2 | |
serde-xml-rs 0.3
Diffstat (limited to 'src/parser.rs')
| -rw-r--r-- | src/parser.rs | 2 | 
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(())  } | 
