diff --git a/serde_test/src/de.rs b/serde_test/src/de.rs index c9bcee5b..a1d62758 100644 --- a/serde_test/src/de.rs +++ b/serde_test/src/de.rs @@ -250,9 +250,7 @@ impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> { { visitor.visit_enum(DeserializerEnumVisitor { de: self }) } - _ => { - unexpected!(self.next_token()); - } + _ => self.deserialize_any(visitor) } }