Skip to content

Commit b81773d

Browse files
author
Wenjie Yang
committed
remove arg_check macro in thread mod
1 parent ad111b0 commit b81773d

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

vm/src/stdlib/thread.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,14 @@ fn rlock_enter(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
2323
Ok(instance.clone())
2424
}
2525

26-
fn rlock_exit(vm: &VirtualMachine, args: PyFuncArgs) -> PyResult {
27-
arg_check!(
28-
vm,
29-
args,
30-
// The context manager protocol requires these, but we don't use them
31-
required = [
32-
(_instance, None),
33-
(_exception_type, None),
34-
(_exception_value, None),
35-
(_traceback, None)
36-
]
37-
);
26+
fn rlock_exit(
27+
// The context manager protocol requires these, but we don't use them
28+
_instance: PyObjectRef,
29+
_exception_type: PyObjectRef,
30+
_exception_value: PyObjectRef,
31+
_traceback: PyObjectRef,
32+
vm: &VirtualMachine,
33+
) -> PyResult {
3834
Ok(vm.get_none())
3935
}
4036

0 commit comments

Comments
 (0)