From 55de7bd99b7011a61f6f678aee1eefff2d9af812 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Mon, 19 Oct 2015 08:33:57 -0700 Subject: [PATCH] fix(tests): Get tests to compile with new value deserializer scheme --- serde_tests/tests/token.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serde_tests/tests/token.rs b/serde_tests/tests/token.rs index 4815dd1d..30d07792 100644 --- a/serde_tests/tests/token.rs +++ b/serde_tests/tests/token.rs @@ -679,7 +679,8 @@ impl<'a, I> de::VariantVisitor for DeserializerVariantVisitor<'a, I> | Some(&Token::EnumNewtype(_, v)) | Some(&Token::EnumSeqStart(_, v, _)) | Some(&Token::EnumMapStart(_, v, _)) => { - let value = try!(de::Deserialize::deserialize(&mut v.into_deserializer())); + let mut de = ValueDeserializer::::into_deserializer(v); + let value = try!(de::Deserialize::deserialize(&mut de)); Ok(value) } Some(_) => {