From f116b39206d9dd42fd1fa0bd9b9730a25c2fc1ae Mon Sep 17 00:00:00 2001 From: Geoffry Song Date: Sun, 11 Feb 2024 20:21:09 -0800 Subject: [PATCH] Cleanup Cargo.toml gen --- pb-jelly-gen/codegen/codegen.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pb-jelly-gen/codegen/codegen.py b/pb-jelly-gen/codegen/codegen.py index 4e827cb..57aad60 100755 --- a/pb-jelly-gen/codegen/codegen.py +++ b/pb-jelly-gen/codegen/codegen.py @@ -1974,11 +1974,11 @@ def get_cargo_toml_file(self, derive_serde: bool) -> Iterator[Tuple[Text, Text]] features.update({"compact_str": 'features=["bytes", "serde"]'}) versions = { - "lazy_static": ' version = "1.4.0" ', - "pb-jelly": ' version = "0.0.16" ', - "serde": ' version = "1.0" ', - "bytes": ' version = "1.0" ', - "compact_str": ' version = "0.5" ', + "lazy_static": 'version = "1.4.0"', + "pb-jelly": 'version = "0.0.16"', + "serde": 'version = "1.0"', + "bytes": 'version = "1.0"', + "compact_str": 'version = "0.5"', } deps_lines = [] @@ -1991,7 +1991,7 @@ def get_cargo_toml_file(self, derive_serde: bool) -> Iterator[Tuple[Text, Text]] else: fields.append('path = "../{dep}"'.format(dep=dep)) deps_lines.append( - "{dep} = {{{fields}}}".format(dep=dep, fields=",".join(fields)) + "{dep} = {{ {fields} }}".format(dep=dep, fields=", ".join(fields)) ) targets = CARGO_TOML_TEMPLATE.format(