Move cognitive_complexity lint from nursery to restriction (#15415)

changelog: [`cognitive_complexity`]: move the lint from `nursery` to the
`restriction`

r? @flip1995
This commit is contained in:
Philipp Krones 2025-08-05 12:20:27 +00:00 committed by GitHub
commit 4d1962c282
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ declare_clippy_lint! {
/// * [`too_many_lines`](https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines)
#[clippy::version = "1.35.0"]
pub COGNITIVE_COMPLEXITY,
nursery,
restriction,
"functions that should be split up into multiple functions",
@eval_always = true
}