From 7fc780ba1b03d93a3d4ff9c2ecc1812c409cf3b8 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 7 Aug 2015 18:31:42 +0200 Subject: [PATCH] json deser from Value adjusted to be equal to deser from strings --- serde_json/src/value.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/serde_json/src/value.rs b/serde_json/src/value.rs index 7b6c0bb0..565bd996 100644 --- a/serde_json/src/value.rs +++ b/serde_json/src/value.rs @@ -722,6 +722,15 @@ impl de::Deserializer for Deserializer { } } + #[inline] + fn visit_newtype_struct(&mut self, + _name: &'static str, + mut visitor: V) -> Result + where V: de::Visitor, + { + visitor.visit_newtype_struct(self) + } + #[inline] fn format() -> &'static str { "json"