2 Detects `if`-then-`panic!` that can be replaced with `assert!`.
5 `assert!` is simpler than `if`-then-`panic!`.
9 let sad_people: Vec<&str> = vec![];
10 if !sad_people.is_empty() {
11 panic!("there are sad people: {:?}", sad_people);
16 let sad_people: Vec<&str> = vec![];
17 assert!(sad_people.is_empty(), "there are sad people: {:?}", sad_people);