diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-01-17 00:38:02 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-01-17 00:38:02 +0100 |
commit | 0565c3f1c607c9bb98b056732e71d6cb0c0fbf8f (patch) | |
tree | 7d1b6848091db1073712615e7ca61f87d86a3484 | |
parent | use `OffsetDateTime::format` instead of `format_into` (diff) | |
download | forgejo-api-0565c3f1c607c9bb98b056732e71d6cb0c0fbf8f.tar.xz forgejo-api-0565c3f1c607c9bb98b056732e71d6cb0c0fbf8f.zip |
remove unnecessary enumeration
-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 be20c25..46b9984 100644 --- a/generator/src/main.rs +++ b/generator/src/main.rs @@ -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); |