Skip to content

Commit 3a5212e

Browse files
committed
tools/prepush: apply the formatting instead of checking it
Signed-off-by: Gunwant Jain <[email protected]>
1 parent 08ec2cb commit 3a5212e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ This pastebin:
210210
to your Git hooks:
211211

212212
```bash
213-
$ cat tools/prepush >> .git/hooks/pre-push
213+
$ cp -a tools/prepush .git/hooks/pre-push
214214
```
215215

216216
Alternately, just run `./tools/prepush` yourself before pushing.

tools/prepush

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
echo "[prepush] Running cargo fmt --check"
3-
cargo fmt -- --check
2+
echo "[prepush] Running cargo fmt"
3+
cargo fmt
44
echo "[prepush] Running cargo clippy"
55
cargo clippy -- -Dwarnings

0 commit comments

Comments
 (0)