mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
15 lines
269 B
Rust
15 lines
269 B
Rust
#![warn(unused, clippy::cognitive_complexity)]
|
|
#![allow(unused_crate_dependencies)]
|
|
|
|
fn main() {
|
|
kaboom();
|
|
}
|
|
|
|
#[clippy::cognitive_complexity = "0"]
|
|
fn kaboom() {
|
|
if 42 == 43 {
|
|
panic!();
|
|
} else if "cake" == "lie" {
|
|
println!("what?");
|
|
}
|
|
}
|