← All Workshops
MudEngine Part 1: Requirements
Step 3 / 19
Install Clippy
Clippy is Rust's official linter. It catches common mistakes, suggests idiomatic alternatives, and helps enforce best practices. It ships with the Rust toolchain.
Install clippy
rustup component add clippy💡 Already have it?
Run clippy-driver --version to check. If it's already installed, you're all set.
🔍 What does Clippy do?
Clippy provides over 700 lint checks that cover correctness, performance,
style, and complexity. Run it with cargo clippy in any Rust project.
Example warnings:
boxed_local— usingBoxwhen a local variable would docollapsible_if— merging nestedifstatementsneedless_return— omitting an unnecessaryreturnkeyword
Adding Clippy to your CI pipeline is a great way to keep code quality high.
Step 3 / 19