fix(tests): Get tests to compile with new value deserializer scheme

This commit is contained in:
Erick Tryzelaar 2015-10-19 08:33:57 -07:00
parent cc67c97224
commit 55de7bd99b

View File

@ -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::<Error>::into_deserializer(v);
let value = try!(de::Deserialize::deserialize(&mut de));
Ok(value)
}
Some(_) => {