From 1bd990bca7fb86ed3a5c1408dd83badf8fe2c230 Mon Sep 17 00:00:00 2001 From: Christian Visintin Date: Sat, 21 Mar 2026 10:58:31 +0100 Subject: [PATCH] ci: check fmt with nightly toolchain --- .github/workflows/linux.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2e9ef3f..79ce01f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -22,6 +22,12 @@ jobs: - uses: actions/checkout@v6 - name: Install dependencies run: sudo apt update && sudo apt install -y libdbus-1-dev libsmbclient-dev + - uses: dtolnay/rust-toolchain@stable + with: + toolchain: nightly + components: rustfmt, clippy + - name: Format + run: cargo +nightly fmt --all -- --check - uses: dtolnay/rust-toolchain@stable with: toolchain: stable @@ -31,7 +37,5 @@ jobs: with: command: test args: --no-default-features --features github-actions --no-fail-fast - - name: Format - run: cargo fmt --all -- --check - name: Clippy run: cargo clippy -- -Dwarnings