Skip to content

Commit f79d49b

Browse files
Revert "use little endian int (#1372)" (#1393)
1 parent 81106d9 commit f79d49b

File tree

1 file changed

+1
-2
lines changed
  • src/serializers/type_serializers

1 file changed

+1
-2
lines changed

src/serializers/type_serializers/uuid.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ use super::{
1414
pub(crate) fn uuid_to_string(py_uuid: &Bound<'_, PyAny>) -> PyResult<String> {
1515
let py = py_uuid.py();
1616
let uuid_int_val: u128 = py_uuid.getattr(intern!(py, "int"))?.extract()?;
17-
// we use a little endian conversion for compatibility across platforms, see https://github.com/pydantic/pydantic-core/pull/1372
18-
let uuid = Uuid::from_u128(uuid_int_val.to_le());
17+
let uuid = Uuid::from_u128(uuid_int_val);
1918
Ok(uuid.to_string())
2019
}
2120

0 commit comments

Comments
 (0)