From 64844131dee5c6f02a345648674a8962e2586c61 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 14 May 2025 11:08:24 +1000 Subject: [PATCH] CI: Manually remove trailing whitespace `rustfmt` bad robot, remove trailing whitespace already. --- .github/workflows/cron-weekly-rustfmt.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cron-weekly-rustfmt.yml b/.github/workflows/cron-weekly-rustfmt.yml index d35073c4a..ba1152104 100644 --- a/.github/workflows/cron-weekly-rustfmt.yml +++ b/.github/workflows/cron-weekly-rustfmt.yml @@ -13,7 +13,8 @@ jobs: with: components: rustfmt - name: Run Nightly rustfmt - run: cargo +nightly fmt + # Run the formatter and manually remove trailing whitespace. + run: cargo +nightly fmt && find . -type f -name '*.rs' -exec sed -i 's/ $//' {} \; - name: Get the current date run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - name: Create Pull Request