From 068ae5d94ba4204a79aac77eb42b5c1e79ef5720 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Thu, 12 Oct 2023 18:56:20 +0000 Subject: [PATCH] try: restore derive(Serialize) like newtype for Id it should not make any difference, but this is how I got the proposergreeting to deserialize. --- libs/utils/src/id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/utils/src/id.rs b/libs/utils/src/id.rs index 9a7282e5cd..19d2545e24 100644 --- a/libs/utils/src/id.rs +++ b/libs/utils/src/id.rs @@ -32,7 +32,7 @@ impl Serialize for Id { if serializer.is_human_readable() { serializer.collect_str(self) } else { - self.0.serialize(serializer) + serializer.serialize_newtype_struct("Id", &self.0) } } }