json deser from Value adjusted to be equal to deser from strings

This commit is contained in:
Oliver Schneider 2015-08-07 18:31:42 +02:00
parent 0482b756e8
commit 7fc780ba1b

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"