]> Untitled Git - lemmy.git/commitdiff
Fix husky fmt hook. (#1868)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 2 Nov 2021 15:15:19 +0000 (11:15 -0400)
committerGitHub <noreply@github.com>
Tue, 2 Nov 2021 15:15:19 +0000 (15:15 +0000)
* Fix husky fmt hook.

* Change to use default cargo

* Using nightly check

.cargo-husky/hooks/pre-commit

index 4b50f2a5b8041a8d1416ea7100c32b03acc975e4..03ecb0fc2e4fef7d658af94573d78491920883e5 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/bash
 set -e
 
-cargo +nightly fmt
+cargo +nightly fmt -- --check
 
-cargo +nightly clippy --workspace --tests --all-targets --all-features -- \
+cargo clippy --workspace --tests --all-targets --all-features -- \
     -D warnings -D deprecated -D clippy::perf -D clippy::complexity -D clippy::dbg_macro
 
 ./scripts/update_config_defaults.sh