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
|
||||
entry: >
|
||||
sh -c '
|
||||
if [ "$(git diff HEAD @{u} | grep -G -- "^--- a/.*\.rs\$")" != "" ];
|
||||
if git diff --name-only HEAD @{u} | grep -qE "\.rs\$";
|
||||
then
|
||||
cargo +nightly clippy -- -D warnings;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user