Improved error message for flattening on unsupported types
This commit is contained in:
parent
b8602a7e43
commit
49e302d17d
@ -2087,7 +2087,7 @@ impl<'a, 'de, E> Deserializer<'de> for FlatMapDeserializer<'a, 'de, E>
|
||||
where
|
||||
V: Visitor<'de>,
|
||||
{
|
||||
Err(Error::custom("can only flatten structs, maps and basic enums"))
|
||||
Err(Error::custom("can only flatten structs, maps and struct enum variants"))
|
||||
}
|
||||
|
||||
fn deserialize_enum<V>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user