diff options
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")) |