Skip to content

Commit b39fc84

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 edf0609 commit b39fc84

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 11 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,29 +24,28 @@ jobs:
2424
- name: Running fuzzer
2525
env:
2626
DO_FUZZ: true
27-
DO_FMT: true
2827
run: ./contrib/test.sh
2928

30-
bench_nightly:
31-
name: Bench + Tests
29+
Nightly:
30+
name: Bench + Fmt
3231
runs-on: ubuntu-latest
33-
strategy:
34-
matrix:
35-
rust:
36-
- nightly
3732
steps:
3833
- name: Checkout Crate
3934
uses: actions/checkout@v2
4035
- name: Checkout Toolchain
4136
uses: actions-rs/toolchain@v1
4237
with:
4338
profile: minimal
44-
toolchain: ${{ matrix.rust }}
39+
toolchain: nightly
4540
override: true
46-
- name: Running cargo test
41+
- name: Running bench
4742
env:
4843
DO_BENCH: true
4944
run: ./contrib/test.sh
45+
- name: Running formatter
46+
env:
47+
DO_FMT: true
48+
run: ./contrib/test.sh
5049

5150
UnitTests:
5251
name: Tests

0 commit comments

Comments
 (0)