From 3c4750097516fa9c0aa50cf57952221fd50528e7 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Thu, 17 Mar 2022 21:54:24 +0530 Subject: [PATCH] chore: add Rust toolchain components (#14004) --- .github/workflows/ci.yml | 6 ------ rust-toolchain.toml | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ae120dafc..c1d09b4c11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,12 +87,6 @@ jobs: - uses: dtolnay/rust-toolchain@stable - - name: Install clippy and rustfmt - if: matrix.job == 'lint' - run: | - rustup component add clippy - rustup component add rustfmt - - name: Install Deno if: matrix.job == 'lint' run: | diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 60883f424c..7bdffcd28d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,3 @@ [toolchain] channel = "1.59.0" +components = ["rustfmt", "clippy"]