Skip to content

Commit 9ddd132

Browse files
authored
Version 0.10.0 (#72)
1 parent f72cb24 commit 9ddd132

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Cargo.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
mac_address = "1.1.7"
12-
pyo3 = { version = "0.22.5", features = ["extension-module", "generate-import-lib", 'abi3-py39'] }
12+
pyo3 = { version = "0.23.1", features = ["extension-module", "generate-import-lib", 'abi3-py39'] }
1313
rand = "0.8.5"
1414
uuid = { version = "1.11.0", features = ["v1", "v3", "v4", "v5", "v6", "v7", "v8", "fast-rng"]}

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl UUID {
138138
}
139139

140140
pub fn __deepcopy__(&self, py: Python, _memo: &Bound<'_, PyDict>) -> Py<PyAny> {
141-
self.clone().into_py(py)
141+
self.clone().into_pyobject(py).unwrap().into_any().unbind()
142142
}
143143

144144
#[getter]
@@ -158,7 +158,7 @@ impl UUID {
158158
bytes[3], bytes[2], bytes[1], bytes[0], bytes[5], bytes[4], bytes[7], bytes[6],
159159
bytes[8], bytes[9], bytes[10], bytes[11], bytes[12], bytes[13], bytes[14], bytes[15],
160160
];
161-
PyBytes::new_bound(py, &bytes)
161+
PyBytes::new(py, &bytes)
162162
}
163163

164164
#[getter]
@@ -449,7 +449,7 @@ fn getnode() -> PyResult<u64> {
449449
#[pymodule]
450450
fn _uuid_utils(m: &Bound<'_, PyModule>) -> PyResult<()> {
451451
let safe_uuid_unknown = Python::with_gil(|py| {
452-
return PyModule::import_bound(py, "uuid")
452+
return PyModule::import(py, "uuid")
453453
.unwrap()
454454
.getattr("SafeUUID")
455455
.unwrap()

0 commit comments

Comments
 (0)