More compact generated code

This commit is contained in:
Aleksey Kladov 2020-04-09 18:03:03 +02:00
parent 4a063e651f
commit 6fd2a12495
4 changed files with 731 additions and 2184 deletions

View file

@ -1,4 +1,6 @@
//! This file is actually hand-written, but the submodules are indeed generated.
#[rustfmt::skip]
pub(super) mod nodes;
#[rustfmt::skip]
pub(super) mod tokens;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -67,6 +67,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> {
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()?;