From: Dessalines Date: Tue, 2 Nov 2021 15:15:19 +0000 (-0400) Subject: Fix husky fmt hook. (#1868) X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=87bc2763ce14683cb1132ca900c4f9fe524f8957;p=lemmy.git Fix husky fmt hook. (#1868) * Fix husky fmt hook. * Change to use default cargo * Using nightly check --- diff --git a/.cargo-husky/hooks/pre-commit b/.cargo-husky/hooks/pre-commit index 4b50f2a5..03ecb0fc 100755 --- 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