blob: 6f6e89983d2b7706499ef199ddd38239225c3585 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#![warn(unused, clippy::cognitive_complexity)]
#![allow(unused_crate_dependencies)]
fn main() {
kaboom();
}
#[clippy::cognitive_complexity = "0"]
fn kaboom() {
//~^ ERROR: the function has a cognitive complexity of (3/0)
if 42 == 43 {
panic!();
} else if "cake" == "lie" {
println!("what?");
}
}
|