Email me

Clippy lints · 847 lints · Clippy 0.1.99

Every Clippy lint, explained: fix it or allow it

Paste a cargo clippy warning to jump to its page: what it means, the real warning text, whether cargo clippy --fix handles it, and the exact line to allow it. Or set up your project's lints below.

847lints in Clippy 0.1.99
493on by default
379fixed by cargo clippy --fix
491with the real warning we captured

The groups, and what they mean

GroupDefaultLintsWhat it is for
Correctnessdeny67Code that is almost certainly wrong. Denied by default: the build fails until you fix it or allow it.
Suspiciouswarn85Code that is most likely wrong or useless. Warns by default.
Stylewarn159Code that works but is not idiomatic Rust. Warns by default.
Complexitywarn144Code that does something simple in a complicated way. Warns by default.
Performancewarn38Code that could be written to run faster. Warns by default.
Pedanticallow145Stricter lints with some false positives. Off by default; opt in with clippy::pedantic.
Restrictionallow135Lints that forbid language features for specific codebases (no unwrap, no indexing...). Off by default; pick them one by one, never the whole group.
Nurseryallow52New lints still being finished. Off by default and may have false positives.
Cargoallow5Checks on Cargo.toml metadata. Off by default.
Deprecatednone17Removed or merged into another lint. Remove it from your config.

Set up your lints

Lint config generator

Pedantic (default allow)
Nursery (default allow)
Cargo (default allow)
Style (default warn)
Complexity (default warn)
Performance (default warn)

Popular single lints

Groups get priority = -1 so single-lint lines override them; Cargo requires that when a group and one of its lints are both set.

Lints people look up most

Correctness (67)

Suspicious (85)

Style (159)

Complexity (144)

Performance (38)

Pedantic (145)

Restriction (135)

Nursery (52)

Cargo (5)

Deprecated (17)

How we built this

We parsed Clippy's stable lint list for Rust 1.99, then ran clippy-driver from the same toolchain on each lint's example and kept the exact warning it printed. Lint docs are from the Rust project (MIT or Apache-2.0).

Up next

Same toolboxRust compiler errors, explained with fixesFor rustc errors like E0382 and E0502.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ