aboutsummaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorBen Navetta <ben.navetta@gmail.com>2015-08-06 23:33:39 -0400
committerBen Navetta <ben.navetta@gmail.com>2015-08-06 23:33:39 -0400
commit8a2282fecd01b889eadcb446c1ce896034ed0fde (patch)
tree647e21827a31977d2bf0b1d8a1936a9bf27e8c5f /src/decoder
parent00337d088e16f000a1e15c8b3d64e962026ea34b (diff)
downloadmilf-rs-8a2282fecd01b889eadcb446c1ce896034ed0fde.tar.gz
milf-rs-8a2282fecd01b889eadcb446c1ce896034ed0fde.zip
it helps to actually build with serde enabled
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/serde.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/decoder/serde.rs b/src/decoder/serde.rs
index aeafd6a..b12984d 100644
--- a/src/decoder/serde.rs
+++ b/src/decoder/serde.rs
@@ -283,7 +283,7 @@ impl de::Deserializer for UnitDeserializer {
// Based on https://github.com/serde-rs/serde/blob/199ed417bd6afc2071d17759b8c7e0ab8d0ba4cc/serde_json/src/value.rs#L265
impl de::Deserialize for Value {
- fn deserialize<D>(deserializer: &mut D) -> Result<Value, D::Error> {
+ fn deserialize<D>(deserializer: &mut D) -> Result<Value, D::Error> where D: de::Deserializer {
struct ValueVisitor;
impl de::Visitor for ValueVisitor {
@@ -319,5 +319,7 @@ impl de::Deserialize for Value {
Ok(Value::Table(values))
}
}
+
+ deserializer.visit(ValueVisitor)
}
}