diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7b98babb0e..b4b468dac3 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] channel = "nightly-2022-08-08" -components = ["rustfmt-preview", "rustc-dev", "rust-src"] +components = ["clippy", "rustfmt-preview", "rustc-dev", "rust-src"] diff --git a/scripts/run_ci_checks.sh b/scripts/run_ci_checks.sh index 23e5c90828..81486402f6 100755 --- a/scripts/run_ci_checks.sh +++ b/scripts/run_ci_checks.sh @@ -14,12 +14,11 @@ fmt() { cargo fmt --check } -# Soon to be superceded by the commented out `cargo clippy` below. # This is different from `cargo build` -# as this uses `--all-features` to check everything. +# as this uses `--all-features` to check everything, +# and runs extra `clippy` checks. check() { - cargo check --tests --all-features - # cargo clippy --tests --all-features + cargo clippy --tests --all-features } doc() {