cargo-clippy
A collection of lints to catch common mistakes and improve your Rust code. tldr-pages
On several platforms
Several platforms
Run checks over the code in the current directory
cargo clippyIdentifyRequire that Cargo.lock is up to date
cargo clippy --lockedIdentifyRun checks on all packages in the workspace
cargo clippy --workspaceIdentifyRun checks for a package
cargo clippy --package packageIdentifyRun checks for a lint group (see <https://rust-lang.github.io/rust-clippy/stable/index.html#?groups=cargo,complexity,correctness,deprecated,nursery,pedantic,perf,restriction,style,suspicious>)
cargo clippy -- --warn clippy::lint_groupIdentifyTreat warnings as errors
cargo clippy -- --deny warningsIdentifyRun checks and ignore warnings
cargo clippy -- --allow warningsIdentifyApply Clippy suggestions automatically
cargo clippy --fixIdentify