it helps to actually build with serde enabled
This commit is contained in:
parent
00337d088e
commit
8a2282fecd
|
@ -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
|
// Based on https://github.com/serde-rs/serde/blob/199ed417bd6afc2071d17759b8c7e0ab8d0ba4cc/serde_json/src/value.rs#L265
|
||||||
impl de::Deserialize for Value {
|
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;
|
struct ValueVisitor;
|
||||||
|
|
||||||
impl de::Visitor for ValueVisitor {
|
impl de::Visitor for ValueVisitor {
|
||||||
|
@ -319,5 +319,7 @@ impl de::Deserialize for Value {
|
||||||
Ok(Value::Table(values))
|
Ok(Value::Table(values))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deserializer.visit(ValueVisitor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue