X0014 clippy-pedantic¶
Rule: No finding of the pedantic clippy lints the project turned on.
| Code | X0014 (stable, never reused) |
| Id | clippy-pedantic |
| Category | clippy |
| Source | clippy (run as an executable) |
| Fix | by hand |
| Needs | clippy installed |
Level per tier¶
| Tier | Level | Reason |
|---|---|---|
| small | off | |
| small-workspace | off | |
| medium | off | |
| big | off | |
| ai | off | |
| embedded | off | |
| ui | off | |
| egui | off | |
| units-strict | off | |
| units-paranoid | off |
Why¶
Clippy's pedantic group holds stricter lints with some false positives. It is off by default: only the lints of it the project turns on in its [lints.clippy] table report, and spirit_level never turns them on itself, so an allow the project wrote always holds. This lint gives those findings a spirit_level level.
How to fix¶
Follow the help of the finding; cargo clippy --explain NAME explains the lint. A place where the lint is wrong gets #[expect(clippy::NAME, reason = "...")].
Configure¶
Allow one finding in the code with // spirit-level: allow(clippy-pedantic) <reason> (waivers); the code works there too, as in [lints.X0014].