Add the Clippy lint component.
Section: Components
Install Clippy
bash
bash
rustup component add clippyExplanation
Required before running `cargo clippy`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Components
List components
Show installed and available components for active toolchain.
Pin toolchain in version-controlled config
Check in a `rust-toolchain.toml` file.