tsk 2 giorni fa
parent
commit
ee910578ab
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      .github/workflows/nightly-rustfmt.yml

+ 1 - 1
.github/workflows/nightly-rustfmt.yml

@@ -41,7 +41,7 @@ jobs:
             cargo fmt
           '
           # Manually remove trailing whitespace
-          git ls-files -- '*.rs' -z | xargs -0 sed -E -i'' -e 's/[[:space:]]+$//'
+          find . -name '*.rs' -type f -exec sed -E -i 's/[[:space:]]+$//' {} +
       - name: Get the current date
         run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
       - name: Create Pull Request