diff options
author | aviac <aviac@mailbox.org> | 2024-01-23 09:31:55 +0100 |
---|---|---|
committer | aviac <aviac@mailbox.org> | 2024-01-23 09:31:55 +0100 |
commit | a7299ab8411d18292394b97bfb4bc6ddc0586327 (patch) | |
tree | 1015ef8bef871eb330c4f4848c952ea132d3641a | |
parent | chore(cleanup): remove comment (diff) | |
download | forgejo-api-a7299ab8411d18292394b97bfb4bc6ddc0586327.tar.xz forgejo-api-a7299ab8411d18292394b97bfb4bc6ddc0586327.zip |
fix(list): adjust broken generated code
Authored-by: Aviac <aviac@mailbox.org>
-rw-r--r-- | generator/src/main.rs | 2 |
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 {{ |