mirror of
https://github.com/fafhrd91/actix-web
synced 2025-03-30 11:26:21 +02:00
fix deserialize_any
for seq
and map
This commit is contained in:
parent
ae2ee7fff1
commit
6df38522eb
@ -426,7 +426,13 @@ impl<'de> Deserializer<'de> for Value<'de> {
|
||||
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_map, "map");
|
||||
unsupported_type!(deserialize_identifier, "identifier");
|
||||
|
Loading…
x
Reference in New Issue
Block a user