Skip to content

Commit

Permalink
Implement serde-rs#2387 also for deserialize_in_place method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Jun 9, 2023
1 parent 7b8e5a2 commit 15339ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serde_derive/src/de.rs
Expand Up @@ -1113,7 +1113,9 @@ fn deserialize_struct_in_place(
};
let visit_seq = Stmts(deserialize_seq_in_place(params, fields, cattrs, expecting));
let visit_map = Stmts(deserialize_map_in_place(params, fields, cattrs));
let field_names = field_names_idents.iter().map(|(name, _, _)| name);
let field_names = field_names_idents
.iter()
.flat_map(|(_, _, aliases)| aliases);

let visitor_expr = quote! {
__Visitor {
Expand Down

0 comments on commit 15339ee

Please sign in to comment.