### What it does Detects `if`-then-`panic!` that can be replaced with `assert!`. ### Why is this bad? `assert!` is simpler than `if`-then-`panic!`. ### Example ``` let sad_people: Vec<&str> = vec![]; if !sad_people.is_empty() { panic!("there are sad people: {:?}", sad_people); } ``` Use instead: ``` let sad_people: Vec<&str> = vec![]; assert!(sad_people.is_empty(), "there are sad people: {:?}", sad_people); ```