tools/prepush: apply the formatting instead of checking it
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
@@ -210,7 +210,7 @@ This pastebin:
|
|||||||
to your Git hooks:
|
to your Git hooks:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cat tools/prepush >> .git/hooks/pre-push
|
$ cp -a tools/prepush .git/hooks/pre-push
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternately, just run `./tools/prepush` yourself before pushing.
|
Alternately, just run `./tools/prepush` yourself before pushing.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo "[prepush] Running cargo fmt --check"
|
echo "[prepush] Running cargo fmt"
|
||||||
cargo fmt -- --check
|
cargo fmt
|
||||||
echo "[prepush] Running cargo clippy"
|
echo "[prepush] Running cargo clippy"
|
||||||
cargo clippy -- -Dwarnings
|
cargo clippy -- -Dwarnings
|
||||||
|
|||||||
Reference in New Issue
Block a user