Add rusty-hook for pre-push cargo fmt

This commit is contained in:
bitfl0wer 2023-05-28 00:52:11 +02:00
parent 0a99e1637b
commit 05940b0e9e
2 changed files with 6 additions and 0 deletions

5
.rusty-hook.toml Normal file
View File

@ -0,0 +1,5 @@
[hooks]
pre-push = "cargo fmt --all -- --check --color always"
[logging]
verbose = true

View File

@ -40,3 +40,4 @@ jsonwebtoken = "8.3.0"
[dev-dependencies]
lazy_static = "1.4.0"
rusty-hook = "0.11.2"