Skip to content

Commit 2fba73d

Browse files
authored
chore: Update pyo3 to new API (#852)
1 parent 4f189c2 commit 2fba73d

3 files changed

Lines changed: 21 additions & 50 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ log = "0.4.14"
4646
itertools = "0.15.0"
4747

4848
# Fontbakery bridge / Python module. Keep these two together
49-
pyo3 = "0.25"
50-
pythonize = "0.25"
49+
pyo3 = "0.29"
50+
pythonize = "0.29"
5151

5252
indexmap = { version = "2", features = ["serde"] }
5353
tabled = "0.21.0"

fontspector-py/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl CheckTester {
9191
.get_item(0)
9292
.map_err(|_| PyValueError::new_err("No args found"))?;
9393
let testables = if first_arg.is_instance_of::<PyList>() {
94-
let first_arg: &Bound<PyList> = first_arg.downcast()?;
94+
let first_arg: &Bound<PyList> = first_arg.cast()?;
9595
first_arg
9696
.iter()
9797
.map(|a| obj_to_testable(py, &a))

0 commit comments

Comments
 (0)