json deser from Value adjusted to be equal to deser from strings
This commit is contained in:
parent
0482b756e8
commit
7fc780ba1b
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user