1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-16 21:26:34 +00:00

fix deserialize_any for seq and map

This commit is contained in:
Valentin Leistner 2022-09-20 23:24:55 +02:00 committed by valentinleistner
parent ae2ee7fff1
commit 6df38522eb

View file

@ -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");