Skip to content

Commit

Permalink
ci: fix benchmarks build
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Sep 15, 2024
1 parent 7f048f1 commit b77cb3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyo3-benches/benches/bench_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn bench_call(b: &mut Bencher<'_>) {
<_ as IntoPy<PyObject>>::into_py("s", py).into_bound(py),
<_ as IntoPy<PyObject>>::into_py(1.23, py).into_bound(py),
);
let kwargs = [("d", 1), ("e", 42)].into_py_dict(py);
let kwargs = [("d", 1), ("e", 42)].into_py_dict_bound(py);

b.iter(|| {
for _ in 0..1000 {
Expand Down Expand Up @@ -148,7 +148,7 @@ class Foo:
<_ as IntoPy<PyObject>>::into_py("s", py).into_bound(py),
<_ as IntoPy<PyObject>>::into_py(1.23, py).into_bound(py),
);
let kwargs = [("d", 1), ("e", 42)].into_py_dict(py);
let kwargs = [("d", 1), ("e", 42)].into_py_dict_bound(py);

b.iter(|| {
for _ in 0..1000 {
Expand Down

0 comments on commit b77cb3c

Please sign in to comment.