2017-10-10 04:00:47 +00:00
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:14:13
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
14 | x.split("x");
|
2018-10-06 16:18:06 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::single-char-pattern` implied by `-D warnings`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:31:16
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
31 | x.contains("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:32:19
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
32 | x.starts_with("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:33:17
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
33 | x.ends_with("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:34:12
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
34 | x.find("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:35:13
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
35 | x.rfind("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:36:14
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
36 | x.rsplit("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:37:24
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
37 | x.split_terminator("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:38:25
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
38 | x.rsplit_terminator("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:39:17
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
39 | x.splitn(0, "x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:40:18
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
40 | x.rsplitn(0, "x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:41:15
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
41 | x.matches("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:42:16
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
42 | x.rmatches("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:43:21
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
43 | x.match_indices("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:44:22
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
44 | x.rmatch_indices("x");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-14 11:35:44 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:45:26
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-14 11:35:44 +00:00
|
|
|
45 | x.trim_start_matches("x");
|
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2018-12-14 11:35:44 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:46:24
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2018-12-14 11:35:44 +00:00
|
|
|
46 | x.trim_end_matches("x");
|
|
|
|
| ^^^ help: try using a char instead: `'x'`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
2018-03-02 15:00:01 +00:00
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:48:13
|
2018-03-02 15:00:01 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
48 | x.split("/n");
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^^ help: try using a char instead: `'/n'`
|
2018-03-02 15:00:01 +00:00
|
|
|
|
2018-07-31 10:20:32 +00:00
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:53:31
|
2018-07-31 10:20:32 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
53 | x.replace(";", ",").split(","); // issue #2978
|
2018-07-31 10:20:32 +00:00
|
|
|
| ^^^ help: try using a char instead: `','`
|
|
|
|
|
2018-08-03 08:19:29 +00:00
|
|
|
error: single-character string constant used as pattern
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/single_char_pattern.rs:54:19
|
2018-08-03 08:19:29 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
54 | x.starts_with("/x03"); // issue #2996
|
2018-08-03 08:19:29 +00:00
|
|
|
| ^^^^^^ help: try using a char instead: `'/x03'`
|
|
|
|
|
|
|
|
error: aborting due to 20 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|