X Tutup
Skip to content

Commit de272d1

Browse files
committed
cleanup
1 parent cd7bd37 commit de272d1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

vm/src/stdlib/ctypes/function.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ impl Function {
106106
.enumerate()
107107
.map(|(count, arg)| {
108108
// none type check
109-
if vm.is_none(&arg) {
110-
return Ok(Arg::new(std::ptr::null()));
111-
}
112109
if let Some(d) = arg.payload_if_subclass::<PyCSimple>(vm) {
113110
return Ok(d.to_arg(self.args[count].clone(), vm).unwrap());
114111
}

0 commit comments

Comments
 (0)
X Tutup