From 3a5212e09c8b4c591346ff0b6e6fdbd169e901ed Mon Sep 17 00:00:00 2001 From: Gunwant Jain Date: Tue, 8 Feb 2022 01:51:39 +0530 Subject: [PATCH] tools/prepush: apply the formatting instead of checking it Signed-off-by: Gunwant Jain --- readme.md | 2 +- tools/prepush | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index c748d54..72c7ab1 100644 --- a/readme.md +++ b/readme.md @@ -210,7 +210,7 @@ This pastebin: to your Git hooks: ```bash - $ cat tools/prepush >> .git/hooks/pre-push + $ cp -a tools/prepush .git/hooks/pre-push ``` Alternately, just run `./tools/prepush` yourself before pushing. diff --git a/tools/prepush b/tools/prepush index e33f5e0..860e31c 100755 --- a/tools/prepush +++ b/tools/prepush @@ -1,5 +1,5 @@ #!/usr/bin/env bash -echo "[prepush] Running cargo fmt --check" -cargo fmt -- --check +echo "[prepush] Running cargo fmt" +cargo fmt echo "[prepush] Running cargo clippy" cargo clippy -- -Dwarnings