Merge pull request #130 from oli-obk/fix

json deser from Value adjusted to be equal to deser from strings
This commit is contained in:
Erick Tryzelaar 2015-08-07 09:45:37 -07:00
commit da3bf3c20a

View File

@ -722,6 +722,15 @@ impl de::Deserializer for Deserializer {
}
}
#[inline]
fn visit_newtype_struct<V>(&mut self,
_name: &'static str,
mut visitor: V) -> Result<V::Value, Self::Error>
where V: de::Visitor,
{
visitor.visit_newtype_struct(self)
}
#[inline]
fn format() -> &'static str {
"json"