diff options
author | Aleksey Kladov <[email protected]> | 2020-04-09 17:03:03 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-09 17:07:16 +0100 |
commit | 6fd2a1249589c0c732b04177e3e7484ac6440fd8 (patch) | |
tree | ee320b1d4c07205a1f1dbbef16b1c5bfaa2ea3b6 /xtask | |
parent | 4a063e651f0ec0da852ce1f87589d5c0a893c59d (diff) |
More compact generated code
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 9d087daa2..ec824a518 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs | |||
@@ -67,6 +67,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> { | |||
67 | let mut rustfmt = Command::new("rustup") | 67 | let mut rustfmt = Command::new("rustup") |
68 | .args(&["run", TOOLCHAIN, "--", "rustfmt", "--config-path"]) | 68 | .args(&["run", TOOLCHAIN, "--", "rustfmt", "--config-path"]) |
69 | .arg(project_root().join("rustfmt.toml")) | 69 | .arg(project_root().join("rustfmt.toml")) |
70 | .args(&["--config", "fn_single_line=true"]) | ||
70 | .stdin(Stdio::piped()) | 71 | .stdin(Stdio::piped()) |
71 | .stdout(Stdio::piped()) | 72 | .stdout(Stdio::piped()) |
72 | .spawn()?; | 73 | .spawn()?; |