diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-01-17 00:20:17 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-01-17 00:20:17 +0100 |
commit | f8bbf570e178f67b5e206e9f7720a1f8c8787006 (patch) | |
tree | e755da05fed4052440e911da473c301ea5757b7e /generator/src/main.rs | |
parent | only check 200 responses for if optional (diff) | |
download | forgejo-api-f8bbf570e178f67b5e206e9f7720a1f8c8787006.tar.xz forgejo-api-f8bbf570e178f67b5e206e9f7720a1f8c8787006.zip |
`RequestBuilder::json` takes reference, doesn't return result
Diffstat (limited to 'generator/src/main.rs')
-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 49e540f..67e44aa 100644 --- a/generator/src/main.rs +++ b/generator/src/main.rs @@ -433,7 +433,7 @@ fn create_method_request( if param_is_string(spec, param)? { body_method = format!(".body({name})"); } else { - body_method = format!(".json({name})?"); + body_method = format!(".json(&{name})"); } } ParameterIn::FormData => { |