Add cargo fmt to build config

This commit is contained in:
Atul Bhosale authored and Andreas Molzer committed 2020-09-12 01:15:53 +02:00
1 parent 7b41c823e9
commit 49da46bbd0
1 file changed
+15
+15
View File
@@ -23,3 +23,18 @@ jobs:
if: ${{ matrix.rust != '1.34.2' }}
env:
FEATURES: ${{ matrix.features }}
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Run rustfmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check