fix: Lessen complexity of test expression

This commit is contained in:
Trash Panda 2026-02-22 12:12:25 -07:00 committed by Ellis Git
parent 57e7cf7057
commit 0be3d850ac

View file

@ -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