Skip to content

Commit e8afd0a

Browse files
committed
Use PyFuncArgs::default() when we want an empty struct
1 parent dcc3f30 commit e8afd0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/objbool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn boolval(vm: &mut VirtualMachine, obj: PyObjectRef) -> Result<bool, PyObje
1616
PyObjectKind::None { .. } => false,
1717
_ => {
1818
if let Ok(f) = objtype::get_attribute(vm, obj.clone(), &String::from("__bool__")) {
19-
match vm.invoke(f, PyFuncArgs::new()) {
19+
match vm.invoke(f, PyFuncArgs::default()) {
2020
Ok(result) => match result.borrow().kind {
2121
PyObjectKind::Boolean { value } => value,
2222
_ => return Err(vm.new_type_error(String::from("TypeError"))),

0 commit comments

Comments
 (0)