diff --git a/actix-router/src/de.rs b/actix-router/src/de.rs index 659119d43..33abe75e6 100644 --- a/actix-router/src/de.rs +++ b/actix-router/src/de.rs @@ -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(self, v: V) -> Result + where + V: Visitor<'de>, + { + self.deserialize_str(v) + } + unsupported_type!(deserialize_seq, "seq"); unsupported_type!(deserialize_map, "map"); unsupported_type!(deserialize_identifier, "identifier");