Merge rust-bitcoin/rust-bitcoin#4605: Remove _all_ the trailing whitespace
6cb4e298c8
Remove _all_ the trailing whitespace (Tobin C. Harding) Pull request description: Recently we tried to make the rustfmt bot remove trailing whitespace but wrote the `sed` command incorrectly - it only removes a single character. Tested by running the new command on #4600. ACKs for top commit: jamillambert: ACK6cb4e298c8
apoelstra: ACK 6cb4e298c8a7496f4b12b34a6c524db18d56d949; successfully ran local tests Tree-SHA512: dd5c4ad3b38848ff5603e5b7077a9b3b62e6e3b232583ac62a486ba3ee71e27d3fe0d404c53110c484d44ca98dee9013be5ff232f4705e9c2ed6be04705395d0
This commit is contained in:
commit
40c5d96055
|
@ -14,7 +14,7 @@ jobs:
|
|||
components: rustfmt
|
||||
- name: Run Nightly rustfmt
|
||||
# Run the formatter and manually remove trailing whitespace.
|
||||
run: cargo +nightly fmt && find . -type f -name '*.rs' -exec sed -i 's/ $//' {} \;
|
||||
run: cargo +nightly fmt && git ls-files -- '*.rs' -z | xargs sed -E -i'' -e 's/[[:space:]]+$//'
|
||||
- name: Get the current date
|
||||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
||||
- name: Create Pull Request
|
||||
|
|
Loading…
Reference in New Issue