From 269819bceebc6d27799d463f1add6a2d6f4e1e2f Mon Sep 17 00:00:00 2001 From: SOFe Date: Tue, 25 Jul 2023 22:41:56 +0800 Subject: [PATCH] chore(ci): change globstar to xargs --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0882842..642dc0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,7 @@ jobs: with: toolchain: nightly profile: default - - run: | - shopt -o globstar - rustfmt +nightly ./**/*.rs --check + - run: git ls-files | grep -P '.*\.rs$' | xargs rustfmt +nightly --check lint: name: clippy lint runs-on: ubuntu-latest