1
0
Fork 0

RequestBuilder::json takes reference, doesn't return result

This commit is contained in:
Cyborus 2024-01-16 18:20:17 -05:00
parent fed24b52ec
commit f8bbf570e1
No known key found for this signature in database

View file

@ -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 => {