Skip to content

Commit

Permalink
Merge pull request #4 from Nitrokey/remove-unneeded-line
Browse files Browse the repository at this point in the history
Remove empty `impl` block in codegen
  • Loading branch information
sosthene-nitrokey authored Apr 10, 2024
2 parents 4a63dc1 + 373e9cd commit 0a6a24b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 153 deletions.
11 changes: 0 additions & 11 deletions generate_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,7 @@ def flatten(items):
slice_val_inner = ", ".join([arg["name"] for name, arg in flatten(v["payload"].items())])
slice_val = "&[" + slice_val_inner + "]"

if payload_has_lifetime:
outfile.write(f'impl<\'data> {name}<\'data> {{\n')
else:
outfile.write(f'impl {name} {{\n')



command_builder = f'CommandBuilder::new({cla}, {ins}, {p1_val}, {p2_val}, __data, {le})'


outfile.write("}\n")
outfile.write("\n")

outfile.write(f'impl{payload_lifetime} DataSource for {name}{payload_lifetime} {{\n')
outfile.write(' fn len(&self) -> usize {\n')
Expand Down
Loading

0 comments on commit 0a6a24b

Please sign in to comment.