projects
/
lemmy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b18ea3e
)
Fix husky fmt hook. (#1868)
author
Dessalines
<dessalines@users.noreply.github.com>
Tue, 2 Nov 2021 15:15:19 +0000
(11:15 -0400)
committer
GitHub
<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
patch
|
blob
|
history
diff --git
a/.cargo-husky/hooks/pre-commit
b/.cargo-husky/hooks/pre-commit
index 4b50f2a5b8041a8d1416ea7100c32b03acc975e4..03ecb0fc2e4fef7d658af94573d78491920883e5 100755
(executable)
--- a/
.cargo-husky/hooks/pre-commit
+++ b/
.cargo-husky/hooks/pre-commit
@@
-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