From 0b904a9efcfd04c1a094395974423fee11df7f9c Mon Sep 17 00:00:00 2001 From: Daniel Porteous Date: Fri, 6 Oct 2023 16:16:01 +0100 Subject: [PATCH] Undo changes from #2387 --- serde_derive/src/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serde_derive/src/de.rs b/serde_derive/src/de.rs index ee8a23766..ed5ff4abf 100644 --- a/serde_derive/src/de.rs +++ b/serde_derive/src/de.rs @@ -1010,7 +1010,7 @@ fn deserialize_struct( } else { let field_names = field_names_idents .iter() - .flat_map(|&(_, _, aliases)| aliases); + .map(|&(name, _, _)| name); Some(quote! { #[doc(hidden)]