We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81106d9 commit f79d49bCopy full SHA for f79d49b
src/serializers/type_serializers/uuid.rs
@@ -14,8 +14,7 @@ use super::{
14
pub(crate) fn uuid_to_string(py_uuid: &Bound<'_, PyAny>) -> PyResult<String> {
15
let py = py_uuid.py();
16
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());
+ let uuid = Uuid::from_u128(uuid_int_val);
19
Ok(uuid.to_string())
20
}
21
0 commit comments