2017-10-10 03:45:03 +00:00
|
|
|
error: you should use the `starts_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:16:5
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
16 | "".chars().next() == Some(' ');
|
2018-10-06 16:18:06 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".starts_with(' ')`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::chars-next-cmp` implied by `-D warnings`
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
|
|
error: you should use the `starts_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:17:5
|
2018-08-01 14:30:44 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
17 | Some(' ') != "".chars().next();
|
2018-08-01 14:30:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with(' ')`
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
|
|
error: you should use the `starts_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:22:8
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
22 | if s.chars().next().unwrap() == 'f' {
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.starts_with('f')`
|
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:26:8
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
26 | if s.chars().next_back().unwrap() == 'o' {
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::chars-last-cmp` implied by `-D warnings`
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:30:8
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
30 | if s.chars().last().unwrap() == 'o' {
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
|
|
|
|
|
|
|
|
error: you should use the `starts_with` method
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:34:8
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
34 | if s.chars().next().unwrap() != 'f' {
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.starts_with('f')`
|
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:38:8
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
38 | if s.chars().next_back().unwrap() != 'o' {
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
|
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:42:8
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
42 | if s.chars().last().unwrap() != 'o' {
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
|
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:50:5
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
50 | "".chars().last() == Some(' ');
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
|
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:51:5
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
51 | Some(' ') != "".chars().last();
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
|
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:52:5
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
52 | "".chars().next_back() == Some(' ');
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
|
|
|
|
|
|
|
|
error: you should use the `ends_with` method
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/starts_ends_with.rs:53:5
|
2017-10-10 03:45:03 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
53 | Some(' ') != "".chars().next_back();
|
2017-10-10 03:45:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
|
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
|