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:
bors[bot] 2019-12-18 14:47:04 +00:00 committed by GitHub
commit c651cf7cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")