We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d38b9b commit fca4178Copy full SHA for fca4178
vm/src/obj/objstr.rs
@@ -1269,11 +1269,11 @@ fn do_cformat(
1269
1270
// check that all arguments were converted
1271
if !mapping_required {
1272
- if !objtuple::get_value(&values_obj)
+ if objtuple::get_value(&values_obj)
1273
.into_iter()
1274
.skip(auto_index)
1275
- .collect::<Vec<PyObjectRef>>()
1276
- .is_empty()
+ .next()
+ .is_some()
1277
{
1278
return Err(vm.new_type_error(
1279
"not all arguments converted during string formatting".to_string(),
0 commit comments