aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-06-12 21:06:19 -0500
committerGitHub <noreply@github.com>2017-06-12 21:06:19 -0500
commit6a3fba6e827b2ace0ea9f914725628064fc37ef5 (patch)
treee6e818d7ae00d71998e5a9ad614df04479bd9f55
parent00c1763e0b89337f980d18888bb1935f250afd7b (diff)
parentef1fd221a20b63371354fce0f00e5d201ff49b6c (diff)
downloadmilf-rs-6a3fba6e827b2ace0ea9f914725628064fc37ef5.tar.gz
milf-rs-6a3fba6e827b2ace0ea9f914725628064fc37ef5.zip
Merge pull request #188 from pitkley/add-intodeserializer
Implement `IntoDeserializer` for `Value`
-rw-r--r--src/value.rs8
1 files changed, 8 insertions, 0 deletions
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 {