Skip to content

Commit 0bec79c

Browse files
committed
[Rust] properly format query string
1 parent 456d379 commit 0bec79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/rust/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl<C: hyper::client::Connect>{{classname}} for {{classname}}Client<C> {
107107
query.append_pair(key, val);
108108
}
109109
{{/hasAuthMethods}}
110-
query.finish()
110+
format!("?{}", query.finish())
111111
};
112112
let uri_str = format!("{}{{{path}}}{}", configuration.base_path, query_string{{#pathParams}}, {{baseName}}={{paramName}}{{#isListContainer}}.join(",").as_ref(){{/isListContainer}}{{/pathParams}});
113113

0 commit comments

Comments
 (0)