aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-09 17:03:03 +0100
committerAleksey Kladov <[email protected]>2020-04-09 17:07:16 +0100
commit6fd2a1249589c0c732b04177e3e7484ac6440fd8 (patch)
treeee320b1d4c07205a1f1dbbef16b1c5bfaa2ea3b6 /xtask/src
parent4a063e651f0ec0da852ce1f87589d5c0a893c59d (diff)
More compact generated code
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/lib.rs1
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()?;