From 362230663b9c3abb32d38f0414f9c12882119f21 Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 26 Oct 2024 16:26:23 +0100 Subject: [PATCH] components? Signed-off-by: clux --- .github/workflows/lint.yml | 2 ++ .github/workflows/rustfmt.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f9073912c..5843e63f6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -31,4 +31,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly + with: + components: rustfmt - run: rustfmt +nightly --edition 2018 --check $(find . -type f -iname *.rs) diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index d92db6f68..aca386a00 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -15,6 +15,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly + with: + components: rustfmt - run: rustfmt +nightly --edition 2018 $(find . -type f -iname *.rs) - name: Create Pull Request uses: peter-evans/create-pull-request@v7