Skip to content

Commit

Permalink
tools/prepush: apply the formatting instead of checking it
Browse files Browse the repository at this point in the history
Signed-off-by: Gunwant Jain <[email protected]>
  • Loading branch information
wantguns committed Feb 7, 2022
1 parent 08ec2cb commit 3a5212e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tools/prepush
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3a5212e

Please sign in to comment.