|
1 | 1 | error: you should use the `starts_with` method
|
2 |
| - --> $DIR/starts_ends_with.rs:7:5 |
| 2 | + --> $DIR/starts_ends_with.rs:8:5 |
3 | 3 | |
|
4 | 4 | LL | "".chars().next() == Some(' ');
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".starts_with(' ')`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::chars-next-cmp` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: you should use the `starts_with` method
|
10 |
| - --> $DIR/starts_ends_with.rs:8:5 |
| 10 | + --> $DIR/starts_ends_with.rs:9:5 |
11 | 11 | |
|
12 | 12 | LL | Some(' ') != "".chars().next();
|
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with(' ')`
|
14 | 14 |
|
15 | 15 | error: you should use the `starts_with` method
|
16 |
| - --> $DIR/starts_ends_with.rs:13:8 |
| 16 | + --> $DIR/starts_ends_with.rs:14:8 |
17 | 17 | |
|
18 | 18 | LL | if s.chars().next().unwrap() == 'f' {
|
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.starts_with('f')`
|
20 | 20 |
|
21 | 21 | error: you should use the `ends_with` method
|
22 |
| - --> $DIR/starts_ends_with.rs:17:8 |
| 22 | + --> $DIR/starts_ends_with.rs:18:8 |
23 | 23 | |
|
24 | 24 | LL | if s.chars().next_back().unwrap() == 'o' {
|
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
|
26 | 26 | |
|
27 | 27 | = note: `-D clippy::chars-last-cmp` implied by `-D warnings`
|
28 | 28 |
|
29 | 29 | error: you should use the `ends_with` method
|
30 |
| - --> $DIR/starts_ends_with.rs:21:8 |
| 30 | + --> $DIR/starts_ends_with.rs:22:8 |
31 | 31 | |
|
32 | 32 | LL | if s.chars().last().unwrap() == 'o' {
|
33 | 33 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
|
34 | 34 |
|
35 | 35 | error: you should use the `starts_with` method
|
36 |
| - --> $DIR/starts_ends_with.rs:25:8 |
| 36 | + --> $DIR/starts_ends_with.rs:26:8 |
37 | 37 | |
|
38 | 38 | LL | if s.chars().next().unwrap() != 'f' {
|
39 | 39 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.starts_with('f')`
|
40 | 40 |
|
41 | 41 | error: you should use the `ends_with` method
|
42 |
| - --> $DIR/starts_ends_with.rs:29:8 |
| 42 | + --> $DIR/starts_ends_with.rs:30:8 |
43 | 43 | |
|
44 | 44 | LL | if s.chars().next_back().unwrap() != 'o' {
|
45 | 45 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
|
46 | 46 |
|
47 | 47 | error: you should use the `ends_with` method
|
48 |
| - --> $DIR/starts_ends_with.rs:33:8 |
| 48 | + --> $DIR/starts_ends_with.rs:34:8 |
49 | 49 | |
|
50 | 50 | LL | if s.chars().last().unwrap() != 'o' {
|
51 | 51 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
|
52 | 52 |
|
53 | 53 | error: you should use the `ends_with` method
|
54 |
| - --> $DIR/starts_ends_with.rs:41:5 |
| 54 | + --> $DIR/starts_ends_with.rs:42:5 |
55 | 55 | |
|
56 | 56 | LL | "".chars().last() == Some(' ');
|
57 | 57 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
|
58 | 58 |
|
59 | 59 | error: you should use the `ends_with` method
|
60 |
| - --> $DIR/starts_ends_with.rs:42:5 |
| 60 | + --> $DIR/starts_ends_with.rs:43:5 |
61 | 61 | |
|
62 | 62 | LL | Some(' ') != "".chars().last();
|
63 | 63 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
|
64 | 64 |
|
65 | 65 | error: you should use the `ends_with` method
|
66 |
| - --> $DIR/starts_ends_with.rs:43:5 |
| 66 | + --> $DIR/starts_ends_with.rs:44:5 |
67 | 67 | |
|
68 | 68 | LL | "".chars().next_back() == Some(' ');
|
69 | 69 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
|
70 | 70 |
|
71 | 71 | error: you should use the `ends_with` method
|
72 |
| - --> $DIR/starts_ends_with.rs:44:5 |
| 72 | + --> $DIR/starts_ends_with.rs:45:5 |
73 | 73 | |
|
74 | 74 | LL | Some(' ') != "".chars().next_back();
|
75 | 75 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
|
|
0 commit comments