From e557ff290aafbad6373e046dff0c6f40393a5862 Mon Sep 17 00:00:00 2001 From: Michael Recachinas Date: Sat, 2 Feb 2019 21:39:06 +0000 Subject: [PATCH] Suppress warning and rename obj to _zelf in arg_check --- vm/src/obj/objbool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/obj/objbool.rs b/vm/src/obj/objbool.rs index bf53b858d..eda7e74bc 100644 --- a/vm/src/obj/objbool.rs +++ b/vm/src/obj/objbool.rs @@ -82,7 +82,7 @@ fn bool_new(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult { } fn bool_doc(vm: &mut VirtualMachine, args: PyFuncArgs) -> Result { - 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.