mirror of
https://github.com/actix/actix-web.git
synced 2024-12-17 21:56:38 +00:00
fix deserialize_any
for seq
and map
This commit is contained in:
parent
ae2ee7fff1
commit
6df38522eb
1 changed files with 7 additions and 1 deletions
|
@ -426,7 +426,13 @@ impl<'de> Deserializer<'de> for Value<'de> {
|
||||||
Err(de::value::Error::custom("unsupported type: tuple struct"))
|
Err(de::value::Error::custom("unsupported type: tuple struct"))
|
||||||
}
|
}
|
||||||
|
|
||||||
unsupported_type!(deserialize_any, "any");
|
fn deserialize_any<V>(self, v: V) -> Result<V::Value, Self::Error>
|
||||||
|
where
|
||||||
|
V: Visitor<'de>,
|
||||||
|
{
|
||||||
|
self.deserialize_str(v)
|
||||||
|
}
|
||||||
|
|
||||||
unsupported_type!(deserialize_seq, "seq");
|
unsupported_type!(deserialize_seq, "seq");
|
||||||
unsupported_type!(deserialize_map, "map");
|
unsupported_type!(deserialize_map, "map");
|
||||||
unsupported_type!(deserialize_identifier, "identifier");
|
unsupported_type!(deserialize_identifier, "identifier");
|
||||||
|
|
Loading…
Reference in a new issue