aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Barnard2017-04-20 12:19:43 +0100
committerEdward Barnard2017-04-20 12:19:43 +0100
commit27951eb03e8ac0376ad61b5da98403b63e8b0a22 (patch)
treeeb844d1e8e9e088723c50f01fed96bbe923ca1d8
parentbdc55b5958596ee39f29eeca99ec5e0d1425edf1 (diff)
downloadrust-plist-27951eb03e8ac0376ad61b5da98403b63e8b0a22.tar.bz2
Update dependencies.
-rw-r--r--Cargo.toml6
-rw-r--r--src/date.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cca82d3..3ab3523 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,10 +14,10 @@ default = ["serde_serialization"]
serde_serialization = ["serde"]
[dependencies]
-xml-rs = "0.3.6"
base64 = "0.4.1"
-byteorder = "0.5.3"
-chrono = "0.2.22"
+byteorder = "1.0.0"
+chrono = "0.3.0"
+xml-rs = "0.4.1"
serde = { version = "0.9.5", optional = true }
[dev-dependencies]
diff --git a/src/date.rs b/src/date.rs
index b7c9914..d36ff16 100644
--- a/src/date.rs
+++ b/src/date.rs
@@ -27,7 +27,7 @@ impl Date {
let dur = dur + Duration::nanoseconds(submilli_nanos as i64);
let plist_epoch = UTC.ymd(2001, 1, 1).and_hms(0, 0, 0);
- let date = try!(plist_epoch.checked_add(dur).ok_or(Error::InvalidData));
+ let date = try!(plist_epoch.checked_add_signed(dur).ok_or(Error::InvalidData));
Ok(Date {
inner: date