1
0
Fork 0

remove unnecessary enumeration

This commit is contained in:
Cyborus 2024-01-16 18:38:02 -05:00
parent ed1092bc9e
commit 0565c3f1c6
No known key found for this signature in database

View file

@ -884,7 +884,7 @@ fn create_query_struct(spec: &OpenApiV2, path: &str, op: &Operation) -> eyre::Re
writeln!(&mut handler, "if !{field_name}.is_empty() {{")?;
writeln!(
&mut handler,
"for (i, item) in {field_name}.iter().enumerate() {{"
"for item in {field_name} {{"
)?;
writeln!(&mut handler, "s.push_str(\"{}=\");", param.name)?;
handler.push_str(item_pusher);