From 85a4d10a360850fa91b906cc322ad152d8f09ac7 Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Thu, 2 Oct 2025 17:03:23 +0200 Subject: [PATCH] CI: add rustfmt on clippy step --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ccf2136f6..52b0052d7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -33,7 +33,7 @@ jobs: steps: - uses: actions/checkout@v5 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: rustup component add clippy --toolchain ${{ matrix.toolchain }} + - run: rustup component add clippy rustfmt --toolchain ${{ matrix.toolchain }} - uses: Swatinem/rust-cache@v2 - run: cargo clippy --all-targets --all-features build_and_test: @@ -81,6 +81,6 @@ jobs: steps: - uses: actions/checkout@v5 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: rustup component add clippy --toolchain ${{ matrix.toolchain }} + - run: rustup component add clippy rustfmt --toolchain ${{ matrix.toolchain }} - uses: Swatinem/rust-cache@v2 - run: cargo clippy --release --all-targets --all-features