mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Rust: remove <> from function wrapper
This commit is contained in:
@@ -25,6 +25,10 @@ class Function:
|
||||
if self.params:
|
||||
self.params[0].first = True
|
||||
|
||||
@property
|
||||
def has_generic_params(self) -> bool:
|
||||
return bool(self.generic_params)
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class TestCode:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// generated by {{generator}}
|
||||
|
||||
{{#function}}
|
||||
fn {{name}}<{{#generic_params}}{{^first}}, {{/first}}{{name}}{{#type}}: {{.}}{{/type}}{{/generic_params}}>({{#params}}{{^first}}, {{/first}}{{name}}: {{type}}{{/params}}) -> {{return_type}} {
|
||||
fn {{name}}{{#has_generic_params}}<{{#generic_params}}{{^first}}, {{/first}}{{name}}{{#type}}: {{.}}{{/type}}{{/generic_params}}>{{/has_generic_params}}({{#params}}{{^first}}, {{/first}}{{name}}: {{type}}{{/params}}) -> {{return_type}} {
|
||||
{{/function}}
|
||||
{{code}}
|
||||
{{#function}}
|
||||
|
||||
Reference in New Issue
Block a user