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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue