Skip to content

Commit 6484413

Browse files
committed
CI: Manually remove trailing whitespace
`rustfmt` bad robot, remove trailing whitespace already.
1 parent fc373f3 commit 6484413

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/cron-weekly-rustfmt.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
with:
1414
components: rustfmt
1515
- name: Run Nightly rustfmt
16-
run: cargo +nightly fmt
16+
# Run the formatter and manually remove trailing whitespace.
17+
run: cargo +nightly fmt && find . -type f -name '*.rs' -exec sed -i 's/ $//' {} \;
1718
- name: Get the current date
1819
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
1920
- name: Create Pull Request

0 commit comments

Comments
 (0)