RequestBuilder::json
takes reference, doesn't return result
This commit is contained in:
parent
fed24b52ec
commit
f8bbf570e1
|
@ -433,7 +433,7 @@ fn create_method_request(
|
||||||
if param_is_string(spec, param)? {
|
if param_is_string(spec, param)? {
|
||||||
body_method = format!(".body({name})");
|
body_method = format!(".body({name})");
|
||||||
} else {
|
} else {
|
||||||
body_method = format!(".json({name})?");
|
body_method = format!(".json(&{name})");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ParameterIn::FormData => {
|
ParameterIn::FormData => {
|
||||||
|
|
Loading…
Reference in a new issue