Skip to content

Commit f7f6f3b

Browse files
committed
Run cargo fmt with nightly toolchain
Running `rustfmt` with the nightly toolchain allows us to use unstable options. Users can still run it with the stable toolchain locally and ignore the warnings.
1 parent 8d0c69a commit f7f6f3b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on: [push, pull_request]
33
name: Continuous integration
44

55
jobs:
6-
fmt_fuzz_stable:
7-
name: Fmt + Fuzz
6+
Fuzz:
7+
name: Fuzz
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
@@ -24,11 +24,10 @@ jobs:
2424
- name: Running fuzzer
2525
env:
2626
DO_FUZZ: true
27-
DO_FMT: true
2827
run: ./contrib/test.sh
2928

3029
Nightly:
31-
name: Bench + Docs
30+
name: Bench + Docs + Fmt
3231
runs-on: ubuntu-latest
3332
steps:
3433
- name: Checkout Crate
@@ -47,6 +46,10 @@ jobs:
4746
env:
4847
DO_DOCS: true
4948
run: ./contrib/test.sh
49+
- name: Running formatter
50+
env:
51+
DO_FMT: true
52+
run: ./contrib/test.sh
5053

5154
UnitTests:
5255
name: Tests

0 commit comments

Comments
 (0)