fix: Lessen complexity of test expression
This commit is contained in:
parent
57e7cf7057
commit
0be3d850ac
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue