mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Make reformat hook actually reformat files
This commit is contained in:
parent
46ca40ccfc
commit
6e48a5bf91
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ pub fn run_fuzzer() -> Result<()> {
|
|||
}
|
||||
|
||||
pub fn reformat_staged_files() -> Result<()> {
|
||||
run_rustfmt(Mode::Overwrite)?;
|
||||
let root = project_root();
|
||||
let output = Command::new("git")
|
||||
.arg("diff")
|
||||
|
|
Loading…
Reference in a new issue