fix(ci): 将 rustfmt/clippy 组件安装改为独立 rustup 步骤

This commit is contained in:
fawney19
2026-04-17 01:53:59 +08:00
parent faaaec28e1
commit 0bcfc7d352

View File

@@ -32,8 +32,9 @@ jobs:
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt - name: Install rustfmt component
run: rustup component add rustfmt
- name: Format - name: Format
run: cargo fmt --all --check run: cargo fmt --all --check
@@ -46,8 +47,9 @@ jobs:
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
with:
components: clippy - name: Install clippy component
run: rustup component add clippy
- name: Rust cache - name: Rust cache
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2