Mercurial > lbo > hg > async-google-apis
changeset 166:23b9f236a84a
Break line in normal method template for better readability
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Fri, 27 Nov 2020 20:44:16 +0100 |
parents | fcfb1b97873d |
children | 5d0dc03d4a90 |
files | generate/templates.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/generate/templates.py Fri Nov 27 20:27:38 2020 +0100 +++ b/generate/templates.py Fri Nov 27 20:44:16 2020 +0100 @@ -167,7 +167,8 @@ NormalMethodTmpl = ''' /// {{{description}}} pub async fn {{{name}}}( - &mut self, params: &{{{param_type}}}{{#in_type}}, req: &{{{in_type}}}{{/in_type}}) -> Result<{{{out_type}}}> { + &mut self, params: &{{{param_type}}} + {{#in_type}}, req: &{{{in_type}}}{{/in_type}}) -> Result<{{{out_type}}}> { let rel_path = {{{rel_path_expr}}}; let path = self.format_path(rel_path.as_str());