diff options
author | Aleksey Kladov <[email protected]> | 2019-12-18 14:40:48 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-18 14:45:24 +0000 |
commit | 6e48a5bf9121f94bd91c9066fc7c4814fb88aff2 (patch) | |
tree | 47772173168994fceeae871d83bf9dd3cabf25f2 | |
parent | 46ca40ccfced6945e05a25979a2703ad967d2fe0 (diff) |
Make reformat hook actually reformat files
-rw-r--r-- | xtask/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<()> { | |||
144 | } | 144 | } |
145 | 145 | ||
146 | pub fn reformat_staged_files() -> Result<()> { | 146 | pub fn reformat_staged_files() -> Result<()> { |
147 | run_rustfmt(Mode::Overwrite)?; | ||
147 | let root = project_root(); | 148 | let root = project_root(); |
148 | let output = Command::new("git") | 149 | let output = Command::new("git") |
149 | .arg("diff") | 150 | .arg("diff") |