aboutsummaryrefslogtreecommitdiff
path: root/src/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.rs')
-rw-r--r--src/value.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/value.rs b/src/value.rs
index 5efdb92..056eac4 100644
--- a/src/value.rs
+++ b/src/value.rs
@@ -544,10 +544,20 @@ impl<'de> de::Deserializer<'de> for Value {
visitor.visit_some(self)
}
+ fn deserialize_newtype_struct<V>(
+ self,
+ _name: &'static str,
+ visitor: V
+ ) -> Result<V::Value, ::de::Error>
+ where V: de::Visitor<'de>
+ {
+ visitor.visit_newtype_struct(self)
+ }
+
forward_to_deserialize_any! {
bool u8 u16 u32 u64 i8 i16 i32 i64 f32 f64 char str string unit seq
bytes byte_buf map unit_struct tuple_struct struct
- tuple ignored_any newtype_struct identifier
+ tuple ignored_any identifier
}
}