diff options
| author | Raph Levien | 2017-02-22 02:21:07 -0800 |
|---|---|---|
| committer | Ed Barnard | 2017-02-22 11:21:07 +0100 |
| commit | 6955747b8fd89025424c2c3feeb568d8fa08e880 (patch) | |
| tree | 3c05ea1cc3155003c9cbdc2315f6752875c93ffc | |
| parent | 20b67f5b14c133ae1f40a06455e148cf0c08281e (diff) | |
| download | rust-plist-6955747b8fd89025424c2c3feeb568d8fa08e880.tar.bz2 | |
Track xml-rs changes (#17)
A recent release of xml-rs (0.3.7) added a new field to the parser
config. This patch provides that field and also updates the version.
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/xml/reader.rs | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -15,7 +15,7 @@ serde_serialization = ["serde"] [dependencies] rustc-serialize = "0.3.19" -xml-rs = "0.3.4" +xml-rs = "0.3.8" byteorder = "0.5.3" chrono = "0.2.22" serde = { version = "0.9.5", optional = true } diff --git a/src/xml/reader.rs b/src/xml/reader.rs index d82400d..265ac11 100644 --- a/src/xml/reader.rs +++ b/src/xml/reader.rs @@ -3,6 +3,7 @@ use chrono::format::ParseError as ChronoParseError; use rustc_serialize::base64::FromBase64; use std::io::Read; use std::str::FromStr; +use std::collections::HashMap; use xml_rs::reader::{EventReader as XmlEventReader, ParserConfig, XmlEvent}; use {Error, Result, PlistEvent}; @@ -28,6 +29,7 @@ impl<R: Read> EventReader<R> { cdata_to_characters: true, ignore_comments: true, coalesce_characters: true, + extra_entities: HashMap::default(), }; EventReader { |
