File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
template/.github/workflows Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 27
27
CARGO_INCREMENTAL: '0'
28
28
CARGO_PROFILE_DEV_DEBUG: '0'
29
29
RUST_TOOLCHAIN_VERSION: "{[ rust_version }]"
30
+ RUST_NIGHTLY_TOOLCHAIN_VERSION: "{[ rust_nightly_version }]"
30
31
PYTHON_VERSION: "{[ python_version }]"
31
32
RUSTFLAGS: "-D warnings"
32
33
RUSTDOCFLAGS: "-D warnings"
@@ -136,9 +137,11 @@ jobs:
136
137
submodules: recursive
137
138
- uses: dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
138
139
with:
139
- toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
140
+ toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
140
141
components: rustfmt
141
- - run: cargo fmt --all -- --check
142
+ - env:
143
+ RUST_TOOLCHAIN_VERSION: ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
144
+ run: cargo "+$RUST_TOOLCHAIN_VERSION" fmt --all -- --check
142
145
143
146
run_clippy:
144
147
name: Run Clippy
You can’t perform that action at this time.
0 commit comments