Implement IntoDeserializer for Value

This commit is contained in:
Pit Kleyersburg 2017-06-11 17:44:41 +02:00
parent 181bff2ee4
commit e89345af42

View file

@ -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; struct Serializer;
impl ser::Serializer for Serializer { impl ser::Serializer for Serializer {