Skip to content

Commit

Permalink
Merge pull request #50 from deltanedas/owned-name
Browse files Browse the repository at this point in the history
use owned string for prototype name deserializer
  • Loading branch information
MrGVSV authored Aug 28, 2023
2 parents 37a72d7 + 01a3906 commit 7a00183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl<'a, 'ctx, 'load_ctx, 'de, L: Loader<Prototype>> DeserializeSeed<'de>
if id.is_some() {
return Err(Error::duplicate_field(NAME));
}
id = Some(map.next_value::<&str>()?.to_owned())
id = Some(map.next_value::<String>()?)
}
PrototypeField::Templates => {
if templates.is_some() {
Expand Down

0 comments on commit 7a00183

Please sign in to comment.