mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
More compact generated code
This commit is contained in:
parent
4a063e651f
commit
6fd2a12495
4 changed files with 731 additions and 2184 deletions
|
@ -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
|
@ -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…
Reference in a new issue