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