diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 190baeddfc..40a6682be9 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")