Skip to content

Commit

Permalink
feat: use nightly toolchain for formatting
Browse files Browse the repository at this point in the history
@da2ce7 started using the nightly build for rust formatting here:

#99

And the job 'format' in the workflow did not work, showing these
warnings:

```
Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
Warning: can't set `imports_granularity = Module`, unstable features are only available in nightly channel.
Warning: can't set `group_imports = StdExternalCrate`, unstable features are only available in nightly channel.
```

So we needed the nightly channel anyway.
  • Loading branch information
josecelano committed Oct 18, 2022
1 parent ca07f32 commit 37ac14e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test_build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
toolchain: nightly
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: Check Rust Formatting
run: cargo fmt --check
uses: actions-rs/cargo@v1
with:
command: fmt --check

test:
needs: format
Expand Down

0 comments on commit 37ac14e

Please sign in to comment.