From a7299ab8411d18292394b97bfb4bc6ddc0586327 Mon Sep 17 00:00:00 2001 From: aviac Date: Tue, 23 Jan 2024 09:31:55 +0100 Subject: fix(list): adjust broken generated code Authored-by: Aviac --- generator/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {{ -- cgit v1.2.3