mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Merge #2586
2586: Make reformat hook actually reformat files r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
c651cf7cd1
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ pub fn run_fuzzer() -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn reformat_staged_files() -> Result<()> {
|
pub fn reformat_staged_files() -> Result<()> {
|
||||||
|
run_rustfmt(Mode::Overwrite)?;
|
||||||
let root = project_root();
|
let root = project_root();
|
||||||
let output = Command::new("git")
|
let output = Command::new("git")
|
||||||
.arg("diff")
|
.arg("diff")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue