Suppress warning and rename obj to _zelf in arg_check

This commit is contained in:
Michael Recachinas
2019-02-02 21:39:06 +00:00
parent e0b41d1386
commit e557ff290a

View File

@@ -82,7 +82,7 @@ fn bool_new(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
}
fn bool_doc(vm: &mut VirtualMachine, args: PyFuncArgs) -> Result<PyObjectRef, PyObjectRef> {
arg_check!(vm, args, required = [(obj, None)]);
arg_check!(vm, args, required = [(_zelf, None)]);
let s = "bool(x) -> bool
Returns True when the argument x is true, False otherwise.