2 #![allow(dead_code, unused_must_use)]
6 #[allow(clippy::unnecessary_operation)]
12 fn chars_cmp_with_unwrap() {
13 let s = String::from("foo");
14 if s.starts_with('f') {
26 if !s.starts_with('f') {
27 // !s.starts_with('f')
30 if !s.ends_with('o') {
34 if !s.ends_with('o') {
40 #[allow(clippy::unnecessary_operation)]