Skip to content

Commit

Permalink
Fix CBHandleOneArg impl on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Feb 23, 2025
1 parent a48fa7d commit b11e4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Handle for Py<CBHandleOneArg> {
let rself = self.get();
let ctx = rself.context.as_ptr();
let cb = rself.callback.as_ptr();
let args = (rself.arg,).into_py_any(py).into_ptr();
let args = (rself.arg,).into_py_any(py).unwrap().into_ptr();

if let Err(err) = run_in_ctx!(py, ctx, cb, args) {
let err_ctx = LogExc::cb_handle(
Expand Down

0 comments on commit b11e4de

Please sign in to comment.