Bug 1646840 - Ensure mach vendor rust writes out .cargo/config.in with LF newlines on Windows r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D80474
This commit is contained in:
Ricky Stewart 2020-06-22 15:24:12 +00:00
parent 65818c219e
commit eb00073e1a

View File

@ -508,7 +508,7 @@ license file's hash.
return dump.strip()
cargo_config = os.path.join(self.topsrcdir, ".cargo", "config.in")
with open(cargo_config, "w") as fh:
with open(cargo_config, "w", encoding="utf-8", newline="\n") as fh:
fh.write(
CARGO_CONFIG_TEMPLATE.format(
config=toml_dump(config),