Skip to content

Commit

Permalink
Improved error message for flattening on unsupported types
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Mar 16, 2018
1 parent b8602a7 commit 49e302d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde/src/private/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down

0 comments on commit 49e302d

Please sign in to comment.