From 6e48a5bf9121f94bd91c9066fc7c4814fb88aff2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 18 Dec 2019 15:40:48 +0100 Subject: Make reformat hook actually reformat files --- xtask/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 190baeddf..40a6682be 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -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") -- cgit v1.2.3