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 Aug 1, 2023
1 parent afe3872 commit 99fde4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serde_derive/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,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 99fde4e

Please sign in to comment.