From 263e852dccb99f980d2a2765a8263934c9a67fdc Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 16 Jul 2020 16:43:02 +0200 Subject: [PATCH] Use functionality of toolchain action for installing rustup components --- .github/workflows/build-code.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-code.yml b/.github/workflows/build-code.yml index 5dad5ee2..2bedf4d0 100644 --- a/.github/workflows/build-code.yml +++ b/.github/workflows/build-code.yml @@ -67,7 +67,8 @@ jobs: with: profile: minimal toolchain: nightly - - run: rustup component add rustfmt + components: rustfmt + override: true - uses: actions-rs/cargo@v1 with: command: fmt @@ -82,7 +83,8 @@ jobs: with: profile: minimal toolchain: nightly - - run: rustup component add clippy + components: clippy, rust-src + override: true - uses: actions-rs/cargo@v1 with: command: clippy