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"]