From 01a390699721192587ac2e189f843f1e05aa2a2b Mon Sep 17 00:00:00 2001 From: deltanedas <@deltanedas:kde.org> Date: Thu, 17 Aug 2023 01:56:59 +0100 Subject: [PATCH] use owned string for prototype name deserializer --- src/de/proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/proto.rs b/src/de/proto.rs index 6a40286..f15be0f 100644 --- a/src/de/proto.rs +++ b/src/de/proto.rs @@ -78,7 +78,7 @@ impl<'a, 'ctx, 'load_ctx, 'de, L: Loader> 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::()?) } PrototypeField::Templates => { if templates.is_some() {