Skip to content

Commit a7dc129

Browse files
committed
Fix CBHandleOneArg impl on PyPy
1 parent a48fa7d commit a7dc129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handles.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl Handle for Py<CBHandleOneArg> {
157157
let rself = self.get();
158158
let ctx = rself.context.as_ptr();
159159
let cb = rself.callback.as_ptr();
160-
let args = (rself.arg,).into_py_any(py).into_ptr();
160+
let args = (rself.arg.clone_ref(py),).into_py_any(py).unwrap().into_ptr();
161161

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

0 commit comments

Comments
 (0)