Revert simple serialization of basic types

This commit is contained in:
Tobie Morgan Hitchcock 2023-03-30 16:52:31 +01:00
parent e41a7f7014
commit 2be25cdcd2
3 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ impl Serialize for Datetime {
if is_internal_serialization() { if is_internal_serialization() {
serializer.serialize_newtype_struct(TOKEN, &self.0) serializer.serialize_newtype_struct(TOKEN, &self.0)
} else { } else {
serializer.serialize_some(&self.to_string()) serializer.serialize_some(&self.0)
} }
} }
} }

View file

@ -82,7 +82,7 @@ impl Serialize for Strand {
if is_internal_serialization() { if is_internal_serialization() {
serializer.serialize_newtype_struct(TOKEN, &self.0) serializer.serialize_newtype_struct(TOKEN, &self.0)
} else { } else {
serializer.serialize_some(&self.to_string()) serializer.serialize_some(&self.0)
} }
} }
} }

View file

@ -90,7 +90,7 @@ impl Serialize for Uuid {
if is_internal_serialization() { if is_internal_serialization() {
serializer.serialize_newtype_struct(TOKEN, &self.0) serializer.serialize_newtype_struct(TOKEN, &self.0)
} else { } else {
serializer.serialize_some(&self.to_string()) serializer.serialize_some(&self.0)
} }
} }
} }