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 2727 CARGO_INCREMENTAL: '0'
2828 CARGO_PROFILE_DEV_DEBUG: '0'
2929 RUST_TOOLCHAIN_VERSION: "{[ rust_version }]"
30+ RUST_NIGHTLY_TOOLCHAIN_VERSION: "{[ rust_nightly_version }]"
3031 PYTHON_VERSION: "{[ python_version }]"
3132 RUSTFLAGS: "-D warnings"
3233 RUSTDOCFLAGS: "-D warnings"
@@ -136,9 +137,11 @@ jobs:
136137 submodules: recursive
137138 - uses: dtolnay/rust-toolchain@c5a29ddb4d9d194e7c84ec8c3fba61b1c31fee8c
138139 with:
139- toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
140+ toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN_VERSION }}
140141 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
142145
143146 run_clippy:
144147 name: Run Clippy
You can’t perform that action at this time.
0 commit comments