Skip to content

Commit 4e88888

Browse files
bschoenmaeckersyouknowone
authored andcommitted
Fix warnings
1 parent 9206893 commit 4e88888

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/capi/src/refcount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustpython_vm::PyObjectRef;
55
#[unsafe(no_mangle)]
66
pub unsafe extern "C" fn _Py_DecRef(op: *mut PyObject) {
77
// By dropping PyObjectRef, we will decrement the reference count.
8-
unsafe { PyObjectRef::from_raw(NonNull::new_unchecked(op)) };
8+
unsafe { drop(PyObjectRef::from_raw(NonNull::new_unchecked(op))) };
99
}
1010

1111
#[unsafe(no_mangle)]

0 commit comments

Comments
 (0)