Skip to content

Commit 6027392

Browse files
committed
Update twinleaf-rust library to v1.4
1 parent 962376c commit 6027392

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

rust/Cargo.lock

Lines changed: 11 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "twinleaf-py"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -9,6 +9,6 @@ name = "_twinleaf"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = { version = "0.24", features = ["extension-module"] }
13-
twinleaf = { version = "1.3" }
12+
pyo3 = { version = "0.26", features = ["extension-module"] }
13+
twinleaf = { version = "1.4" }
1414
crossbeam = "0.8"

rust/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl PyIter {
1818
slf
1919
}
2020

21-
fn __next__(mut slf: PyRefMut<'_, Self>) -> PyResult<Option<PyObject>> {
21+
fn __next__(mut slf: PyRefMut<'_, Self>) -> PyResult<Option<Py<PyAny>>> {
2222
let dict = PyDict::new(slf.py());
2323

2424
if let Some(ctr) = slf.n {
@@ -128,7 +128,7 @@ impl PyDevice {
128128
})
129129
}
130130

131-
fn _get_metadata<'py>(&self, py: Python<'py>) -> PyResult<PyObject> {
131+
fn _get_metadata<'py>(&self, py: Python<'py>) -> PyResult<Py<PyAny>> {
132132
let mut device = data::Device::new(self.proxy.device_full(self.route.clone()).unwrap());
133133
let meta = match device.get_metadata() {
134134
Ok(meta) => meta,

0 commit comments

Comments
 (0)