diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-01-24 22:55:40 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-01-24 22:55:40 +0100 |
commit | e2aba79ce07188cbf550695be0f8e19e56be01f0 (patch) | |
tree | 8cc406e46a28ac9d2b0b0c60c3072abc75486cc7 /generator/src | |
parent | generate code (diff) | |
download | forgejo-api-e2aba79ce07188cbf550695be0f8e19e56be01f0.tar.xz forgejo-api-e2aba79ce07188cbf550695be0f8e19e56be01f0.zip |
format
Diffstat (limited to 'generator/src')
-rw-r--r-- | generator/src/main.rs | 3 |
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) )?; } }, |