Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
chore: sort clap macros in path parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
gtema committed Feb 8, 2024
1 parent 11ce53b commit d137507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegenerator/rust_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def clap_macros(self):
# the value_name is turned back to the expected value
macros.add(f'id = "path_param_{self.local_name}"')
macros.add(f'value_name = "{self.local_name.upper()}"')
return f"#[arg({', '.join(macros)})]"
return f"#[arg({', '.join(sorted(macros))})]"


class RequestTypeManager(common_rust.TypeManager):
Expand Down

0 comments on commit d137507

Please sign in to comment.