1 error: you should use the `starts_with` method
2 --> $DIR/starts_ends_with.rs:19:5
4 19 | "".chars().next() == Some(' ');
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".starts_with(' ')`
7 = note: `-D clippy::chars-next-cmp` implied by `-D warnings`
9 error: you should use the `starts_with` method
10 --> $DIR/starts_ends_with.rs:20:5
12 20 | Some(' ') != "".chars().next();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with(' ')`
15 error: you should use the `starts_with` method
16 --> $DIR/starts_ends_with.rs:25:8
18 25 | if s.chars().next().unwrap() == 'f' { // s.starts_with('f')
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.starts_with('f')`
21 error: you should use the `ends_with` method
22 --> $DIR/starts_ends_with.rs:28:8
24 28 | if s.chars().next_back().unwrap() == 'o' { // s.ends_with('o')
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
27 = note: `-D clippy::chars-last-cmp` implied by `-D warnings`
29 error: you should use the `ends_with` method
30 --> $DIR/starts_ends_with.rs:31:8
32 31 | if s.chars().last().unwrap() == 'o' { // s.ends_with('o')
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
35 error: you should use the `starts_with` method
36 --> $DIR/starts_ends_with.rs:34:8
38 34 | if s.chars().next().unwrap() != 'f' { // !s.starts_with('f')
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.starts_with('f')`
41 error: you should use the `ends_with` method
42 --> $DIR/starts_ends_with.rs:37:8
44 37 | if s.chars().next_back().unwrap() != 'o' { // !s.ends_with('o')
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
47 error: you should use the `ends_with` method
48 --> $DIR/starts_ends_with.rs:40:8
50 40 | if s.chars().last().unwrap() != 'o' { // !s.ends_with('o')
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
53 error: you should use the `ends_with` method
54 --> $DIR/starts_ends_with.rs:47:5
56 47 | "".chars().last() == Some(' ');
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
59 error: you should use the `ends_with` method
60 --> $DIR/starts_ends_with.rs:48:5
62 48 | Some(' ') != "".chars().last();
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
65 error: you should use the `ends_with` method
66 --> $DIR/starts_ends_with.rs:49:5
68 49 | "".chars().next_back() == Some(' ');
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
71 error: you should use the `ends_with` method
72 --> $DIR/starts_ends_with.rs:50:5
74 50 | Some(' ') != "".chars().next_back();
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
77 error: aborting due to 12 previous errors