try: restore derive(Serialize) like newtype for Id

it should not make any difference, but this is how I got the
proposergreeting to deserialize.
This commit is contained in:
Joonas Koivunen
2023-10-12 18:56:20 +00:00
parent 6a2028b10d
commit 068ae5d94b

View File

@@ -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)
}
}
}