From 8f701b56b23cd157ea195470a7b0e54e8137b0d2 Mon Sep 17 00:00:00 2001 From: Changyuan Lyu Date: Thu, 20 Mar 2025 18:29:14 -0700 Subject: [PATCH] ci: fix rustfmt Signed-off-by: Changyuan Lyu --- .github/workflows/rust.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fcba889f..21ca116d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,11 +45,9 @@ jobs: run: cargo build --verbose --target ${{ matrix.target.name }} if: matrix.target.name != 'aarch64-unknown-linux-gnu' - name: Format - run: > - cargo +nightly --version || ( - rustup toolchain install nightly && - rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt - ) && + run: > + rustup toolchain install nightly && + rustup component add --toolchain nightly rustfmt && cargo +nightly fmt --check if: matrix.target.name == 'x86_64-unknown-linux-gnu' - name: Run tests