From ef1fd221a20b63371354fce0f00e5d201ff49b6c Mon Sep 17 00:00:00 2001 From: Pit Kleyersburg Date: Sun, 11 Jun 2017 17:44:41 +0200 Subject: Implement `IntoDeserializer` for `Value` --- src/value.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/value.rs b/src/value.rs index dcc3567..83be066 100644 --- a/src/value.rs +++ b/src/value.rs @@ -620,6 +620,14 @@ impl<'de> de::MapAccess<'de> for MapDeserializer { } } +impl<'de> de::IntoDeserializer<'de, ::de::Error> for Value { + type Deserializer = Self; + + fn into_deserializer(self) -> Self { + self + } +} + struct Serializer; impl ser::Serializer for Serializer { -- cgit v1.2.3