Skip to content

Commit

Permalink
Update de.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Astavie committed Aug 2, 2023
1 parent 60a0906 commit 181d85f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions serde_derive/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1146,9 +1146,14 @@ fn deserialize_struct_in_place(
.filter(|&(_, field)| !field.attrs.skip_deserializing())
.map(|(i, field)| {
(
field.attrs.name().deserialize_name(),
VariantName::String(field.attrs.name().deserialize_name()),
field_i(i),
field.attrs.aliases(),
field
.attrs
.aliases()
.iter()
.map(|a| VariantName::String(a.clone()))
.collect(),
)
})
.collect();
Expand Down

0 comments on commit 181d85f

Please sign in to comment.