38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
16 lines
243 B
Rust
16 lines
243 B
Rust
#![warn(clippy::cyclomatic_complexity)]
|
|
#![warn(unused)]
|
|
|
|
fn main() {
|
|
kaboom();
|
|
}
|
|
|
|
#[clippy::cyclomatic_complexity = "0"]
|
|
fn kaboom() {
|
|
if 42 == 43 {
|
|
panic!();
|
|
} else if "cake" == "lie" {
|
|
println!("what?");
|
|
}
|
|
}
|