summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authoraviac <aviac@mailbox.org>2024-01-23 09:31:55 +0100
committeraviac <aviac@mailbox.org>2024-01-23 09:31:55 +0100
commita7299ab8411d18292394b97bfb4bc6ddc0586327 (patch)
tree1015ef8bef871eb330c4f4848c952ea132d3641a /generator
parentchore(cleanup): remove comment (diff)
downloadforgejo-api-a7299ab8411d18292394b97bfb4bc6ddc0586327.tar.xz
forgejo-api-a7299ab8411d18292394b97bfb4bc6ddc0586327.zip
fix(list): adjust broken generated code
Authored-by: Aviac <aviac@mailbox.org>
Diffstat (limited to 'generator')
-rw-r--r--generator/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs
index b0629c1..27fa5fb 100644
--- a/generator/src/main.rs
+++ b/generator/src/main.rs
@@ -1079,7 +1079,7 @@ fn simple_query_array(
&mut out,
"
if !{name}.is_empty() {{
- for item in {name} {{
+ for (item, i) in {name}.iter().enumerate() {{
write!(f, \"{}=\")?;
{item_pusher}
if i < {name}.len() - 1 {{