mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
More compact generated code
This commit is contained in:
parent
4a063e651f
commit
6fd2a12495
4 changed files with 731 additions and 2184 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue