CI: Refactor rustfmt CI job

This commit is contained in:
Jack Grigg
2022-03-20 15:14:41 +00:00
parent f0ba5724bf
commit dcdf306d3a
+3 -2
View File
@@ -143,9 +143,10 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.51.0
components: rustfmt
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check