From 2be25cdcd2e331cda64232cff734f48890fcde88 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Thu, 30 Mar 2023 16:52:31 +0100 Subject: [PATCH] Revert simple serialization of basic types --- lib/src/sql/datetime.rs | 2 +- lib/src/sql/strand.rs | 2 +- lib/src/sql/uuid.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/sql/datetime.rs b/lib/src/sql/datetime.rs index 09413cbc..44edae9e 100644 --- a/lib/src/sql/datetime.rs +++ b/lib/src/sql/datetime.rs @@ -77,7 +77,7 @@ impl Serialize for Datetime { if is_internal_serialization() { serializer.serialize_newtype_struct(TOKEN, &self.0) } else { - serializer.serialize_some(&self.to_string()) + serializer.serialize_some(&self.0) } } } diff --git a/lib/src/sql/strand.rs b/lib/src/sql/strand.rs index dff98238..3c42200d 100644 --- a/lib/src/sql/strand.rs +++ b/lib/src/sql/strand.rs @@ -82,7 +82,7 @@ impl Serialize for Strand { if is_internal_serialization() { serializer.serialize_newtype_struct(TOKEN, &self.0) } else { - serializer.serialize_some(&self.to_string()) + serializer.serialize_some(&self.0) } } } diff --git a/lib/src/sql/uuid.rs b/lib/src/sql/uuid.rs index dcb65435..78490c77 100644 --- a/lib/src/sql/uuid.rs +++ b/lib/src/sql/uuid.rs @@ -90,7 +90,7 @@ impl Serialize for Uuid { if is_internal_serialization() { serializer.serialize_newtype_struct(TOKEN, &self.0) } else { - serializer.serialize_some(&self.to_string()) + serializer.serialize_some(&self.0) } } }