Merge pull request #188 from pitkley/add-intodeserializer

Implement `IntoDeserializer` for `Value`
This commit is contained in:
Alex Crichton 2017-06-12 21:06:19 -05:00 committed by GitHub
commit 5c523f14d5

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