mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
Change rustfmt flags. For v0.8.2.
This commit is contained in:
parent
7895964ee1
commit
4a1ccdeadb
1 changed files with 3 additions and 4 deletions
|
@ -29,7 +29,6 @@ run(["node", prettier, "--write"] + find_exts("js/", ".js", ".ts") +
|
||||||
rustfmt_extra_args = []
|
rustfmt_extra_args = []
|
||||||
if 'RUSTFMT_FLAGS' in os.environ:
|
if 'RUSTFMT_FLAGS' in os.environ:
|
||||||
rustfmt_extra_args += os.environ['RUSTFMT_FLAGS'].split()
|
rustfmt_extra_args += os.environ['RUSTFMT_FLAGS'].split()
|
||||||
run([
|
# Requires rustfmt 0.8.2 (flags were different in previous versions)
|
||||||
"rustfmt", "--config-path", rustfmt_config, "--error-on-unformatted",
|
run(["rustfmt", "--config-path", rustfmt_config] + rustfmt_extra_args +
|
||||||
"--write-mode", "overwrite"
|
find_exts("src/", ".rs"))
|
||||||
] + rustfmt_extra_args + find_exts("src/", ".rs"))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue