mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Lessen complexity of test expression
This commit is contained in:
@@ -53,7 +53,7 @@ repos:
|
|||||||
name: cargo clippy
|
name: cargo clippy
|
||||||
entry: >
|
entry: >
|
||||||
sh -c '
|
sh -c '
|
||||||
if [ "$(git diff HEAD @{u} | grep -G -- "^--- a/.*\.rs\$")" != "" ];
|
if git diff --name-only HEAD @{u} | grep -qE "\.rs\$";
|
||||||
then
|
then
|
||||||
cargo +nightly clippy -- -D warnings;
|
cargo +nightly clippy -- -D warnings;
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user