Revert simple serialization of basic types
This commit is contained in:
parent
e41a7f7014
commit
2be25cdcd2
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue