浏览代码

fix: nightly ci (#1298)

tsk 2 天之前
父节点
当前提交
ee910578ab
共有 1 个文件被更改,包括 1 次插入1 次删除
  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