diff options
author | Alex Crichton <alex@alexcrichton.com> | 2017-04-20 10:16:00 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2017-04-20 10:16:00 -0700 |
commit | 0cc6dc9960ebb8415f2e73f210e61d8db0d9b3fa (patch) | |
tree | 8cc1816b7e92fcf5bfbb888c26a9ceb02dd85831 /tests | |
parent | 2ae8c79ab8f1ac22c53bd200f7131879fe097d80 (diff) | |
download | milf-rs-0cc6dc9960ebb8415f2e73f210e61d8db0d9b3fa.tar.gz milf-rs-0cc6dc9960ebb8415f2e73f210e61d8db0d9b3fa.zip |
Support serde 1.0.0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serde.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/serde.rs b/tests/serde.rs index e4d88fc..bfbdc6f 100644 --- a/tests/serde.rs +++ b/tests/serde.rs @@ -130,8 +130,8 @@ fn nested() { fn application_decode_error() { #[derive(PartialEq, Debug)] struct Range10(usize); - impl Deserialize for Range10 { - fn deserialize<D: Deserializer>(d: D) -> Result<Range10, D::Error> { + impl<'de> Deserialize<'de> for Range10 { + fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Range10, D::Error> { let x: usize = try!(Deserialize::deserialize(d)); if x > 10 { Err(serde::de::Error::custom("more than 10")) |