From 0cc6dc9960ebb8415f2e73f210e61d8db0d9b3fa Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 20 Apr 2017 10:16:00 -0700 Subject: Support serde 1.0.0 --- tests/serde.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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: D) -> Result { + impl<'de> Deserialize<'de> for Range10 { + fn deserialize>(d: D) -> Result { let x: usize = try!(Deserialize::deserialize(d)); if x > 10 { Err(serde::de::Error::custom("more than 10")) -- cgit v1.2.3