Skip to content

X0013 clippy-nursery

Rule: No finding of the nursery clippy lints the project turned on.

Code X0013 (stable, never reused)
Id clippy-nursery
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 nursery group holds lints still under development. 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.

# Cargo.toml
[workspace.lints.clippy]
nursery = { level = "warn", priority = -1 }

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

[lints.clippy-nursery]
level = "deny"
reason = "why this project wants it at this level"

Allow one finding in the code with // spirit-level: allow(clippy-nursery) <reason> (waivers); the code works there too, as in [lints.X0013].