Skip to content

Commit a60b5e6

Browse files
committed
use stable cargo fmt
1 parent 58d55d5 commit a60b5e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/check-rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install Rust Nightly
3939
uses: actions-rs/toolchain@v1
4040
with:
41-
toolchain: nightly
41+
toolchain: stable
4242
components: rustfmt
4343

4444
- name: Utilize Shared Rust Cache
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
set -euo pipefail
5353
# Run cargo fmt and capture both stdout and stderr
54-
output=$(cargo +nightly fmt --check --all 2>&1) || {
54+
output=$(cargo fmt --check --all 2>&1) || {
5555
echo "❌ cargo fmt failed with non-zero exit code"
5656
echo "$output"
5757
exit 1

scripts/fix_rust.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cargo fix --workspace --all-features --all-targets
2424
commit_if_changes "cargo fix"
2525

2626
# Step 4: Run cargo fmt and commit changes if any.
27-
cargo +nightly fmt --all
27+
cargo fmt --all
2828
commit_if_changes "cargo fmt"
2929

3030
if command -v zepter >/dev/null 2>&1; then

0 commit comments

Comments
 (0)