summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-01-24 22:55:40 +0100
committerCyborus <cyborus@cyborus.xyz>2024-01-24 22:55:40 +0100
commite2aba79ce07188cbf550695be0f8e19e56be01f0 (patch)
tree8cc406e46a28ac9d2b0b0c60c3072abc75486cc7
parentgenerate code (diff)
downloadforgejo-api-e2aba79ce07188cbf550695be0f8e19e56be01f0.tar.xz
forgejo-api-e2aba79ce07188cbf550695be0f8e19e56be01f0.zip
format
-rw-r--r--generator/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs
index 6ebac1e..e12654d 100644
--- a/generator/src/main.rs
+++ b/generator/src/main.rs
@@ -945,7 +945,8 @@ fn create_query_struct(spec: &OpenApiV2, path: &str, op: &Operation) -> eyre::Re
writeln!(
&mut handler,
"write!(f, \"{}={{{}}}&\")?;",
- param.name, field_name.strip_prefix("r#").unwrap_or(&field_name)
+ param.name,
+ field_name.strip_prefix("r#").unwrap_or(&field_name)
)?;
}
},