From 6fd2a1249589c0c732b04177e3e7484ac6440fd8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Apr 2020 18:03:03 +0200 Subject: More compact generated code --- xtask/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'xtask/src/lib.rs') 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 { let mut rustfmt = Command::new("rustup") .args(&["run", TOOLCHAIN, "--", "rustfmt", "--config-path"]) .arg(project_root().join("rustfmt.toml")) + .args(&["--config", "fn_single_line=true"]) .stdin(Stdio::piped()) .stdout(Stdio::piped()) .spawn()?; -- cgit v1.2.3