diff options
| author | Robin Stocker | 2017-08-22 05:29:28 +1000 |
|---|---|---|
| committer | Ed Barnard | 2017-08-21 20:29:28 +0100 |
| commit | 33f92308e8fe3f88a80b11eb7b2dee1d27977443 (patch) | |
| tree | 84251c18df98cefad6a2bb7c4b4d8aa10cbef78a /src/xml | |
| parent | b0d6118889409aa6fb13a7855d5ede17c3d11cc1 (diff) | |
| download | rust-plist-33f92308e8fe3f88a80b11eb7b2dee1d27977443.tar.bz2 | |
Upgrade chrono from 0.3 to 0.4 (#23)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/reader.rs | 4 | ||||
| -rw-r--r-- | src/xml/writer.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/xml/reader.rs b/src/xml/reader.rs index 465d264..e6b6953 100644 --- a/src/xml/reader.rs +++ b/src/xml/reader.rs @@ -146,7 +146,7 @@ impl<R: Read> Iterator for EventReader<R> { #[cfg(test)] mod tests { - use chrono::{TimeZone, UTC}; + use chrono::{TimeZone, Utc}; use std::fs::File; use std::path::Path; @@ -176,7 +176,7 @@ mod tests { StringValue("Data".to_owned()), DataValue(vec![0, 0, 0, 190, 0, 0, 0, 3, 0, 0, 0, 30, 0, 0, 0]), StringValue("Birthdate".to_owned()), - DateValue(UTC.ymd(1981, 05, 16).and_hms(11, 32, 06).into()), + DateValue(Utc.ymd(1981, 05, 16).and_hms(11, 32, 06).into()), StringValue("Blank".to_owned()), StringValue("".to_owned()), EndDictionary]; diff --git a/src/xml/writer.rs b/src/xml/writer.rs index 5d2e2f0..7048b32 100644 --- a/src/xml/writer.rs +++ b/src/xml/writer.rs @@ -187,7 +187,7 @@ impl<W: Write> PlistEventWriter for EventWriter<W> { #[cfg(test)] mod tests { - use chrono::{TimeZone, UTC}; + use chrono::{TimeZone, Utc}; use std::io::Cursor; use super::*; @@ -211,7 +211,7 @@ mod tests { StringValue("Data".to_owned()), DataValue(vec![0, 0, 0, 190, 0, 0, 0, 3, 0, 0, 0, 30, 0, 0, 0]), StringValue("Birthdate".to_owned()), - DateValue(UTC.ymd(1981, 05, 16).and_hms(11, 32, 06).into()), + DateValue(Utc.ymd(1981, 05, 16).and_hms(11, 32, 06).into()), EndDictionary]; let mut cursor = Cursor::new(Vec::new()); |
