diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index e54be2120..76b8b7b11 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -1051,7 +1051,7 @@ fn deserialize_struct( _serde::Deserializer::deserialize_map(#deserializer, #visitor_expr) }, StructForm::Untagged(_, deserializer) => quote! { - _serde::Deserializer::deserialize_any(#deserializer, #visitor_expr) + _serde::Deserializer::deserialize_map(#deserializer, #visitor_expr) }, };