We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CBHandleOneArg
1 parent a48fa7d commit a7dc129Copy full SHA for a7dc129
src/handles.rs
@@ -157,7 +157,7 @@ impl Handle for Py<CBHandleOneArg> {
157
let rself = self.get();
158
let ctx = rself.context.as_ptr();
159
let cb = rself.callback.as_ptr();
160
- let args = (rself.arg,).into_py_any(py).into_ptr();
+ let args = (rself.arg.clone_ref(py),).into_py_any(py).unwrap().into_ptr();
161
162
if let Err(err) = run_in_ctx!(py, ctx, cb, args) {
163
let err_ctx = LogExc::cb_handle(
0 commit comments