1 error: you should use the `starts_with` method
2 --> $DIR/starts_ends_with.rs:8:5
4 LL | "".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:9:5
12 LL | Some(' ') != "".chars().next();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with(' ')`
15 error: you should use the `starts_with` method
16 --> $DIR/starts_ends_with.rs:12:5
18 LL | "".chars().next() == Some('/n');
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".starts_with('/n')`
21 error: you should use the `starts_with` method
22 --> $DIR/starts_ends_with.rs:13:5
24 LL | Some('/n') != "".chars().next();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with('/n')`
27 error: you should use the `starts_with` method
28 --> $DIR/starts_ends_with.rs:18:8
30 LL | if s.chars().next().unwrap() == 'f' {
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.starts_with('f')`
33 error: you should use the `ends_with` method
34 --> $DIR/starts_ends_with.rs:22:8
36 LL | if s.chars().next_back().unwrap() == 'o' {
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
39 = note: `-D clippy::chars-last-cmp` implied by `-D warnings`
41 error: you should use the `ends_with` method
42 --> $DIR/starts_ends_with.rs:26:8
44 LL | if s.chars().last().unwrap() == 'o' {
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
47 error: you should use the `starts_with` method
48 --> $DIR/starts_ends_with.rs:30:8
50 LL | if s.chars().next().unwrap() != 'f' {
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.starts_with('f')`
53 error: you should use the `ends_with` method
54 --> $DIR/starts_ends_with.rs:34:8
56 LL | if s.chars().next_back().unwrap() != 'o' {
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
59 error: you should use the `ends_with` method
60 --> $DIR/starts_ends_with.rs:38:8
62 LL | if s.chars().last().unwrap() != '/n' {
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('/n')`
65 error: you should use the `ends_with` method
66 --> $DIR/starts_ends_with.rs:46:5
68 LL | "".chars().last() == Some(' ');
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
71 error: you should use the `ends_with` method
72 --> $DIR/starts_ends_with.rs:47:5
74 LL | Some(' ') != "".chars().last();
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
77 error: you should use the `ends_with` method
78 --> $DIR/starts_ends_with.rs:48:5
80 LL | "".chars().next_back() == Some(' ');
81 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
83 error: you should use the `ends_with` method
84 --> $DIR/starts_ends_with.rs:49:5
86 LL | Some(' ') != "".chars().next_back();
87 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
89 error: you should use the `ends_with` method
90 --> $DIR/starts_ends_with.rs:52:5
92 LL | "".chars().last() == Some('/n');
93 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with('/n')`
95 error: you should use the `ends_with` method
96 --> $DIR/starts_ends_with.rs:53:5
98 LL | Some('/n') != "".chars().last();
99 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with('/n')`
101 error: aborting due to 16 previous errors