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(