2017-10-10 04:00:47 +00:00
|
|
|
|
error: single-character string constant used as pattern
|
2019-01-31 07:27:04 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:9:13
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.split("x");
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
|
|
|
|
|
= note: `-D clippy::single-char-pattern` implied by `-D warnings`
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
2020-09-24 14:36:29 +00:00
|
|
|
|
error: single-character string constant used as pattern
|
2020-10-07 22:03:26 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:15:13
|
2020-09-24 14:36:29 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split("ß");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'ß'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2020-10-07 22:03:26 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:16:13
|
2020-09-24 14:36:29 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split("ℝ");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'ℝ'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2020-10-07 22:03:26 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:17:13
|
2020-09-24 14:36:29 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split("💣");
|
|
|
|
|
| ^^^^ help: try using a `char` instead: `'💣'`
|
|
|
|
|
|
2017-10-10 04:00:47 +00:00
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:20:23
|
|
|
|
|
|
|
|
|
|
|
LL | x.split_inclusive("x");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
|
--> $DIR/single_char_pattern.rs:21:16
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.contains("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:22:19
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.starts_with("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:23:17
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.ends_with("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:24:12
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.find("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:25:13
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.rfind("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:26:14
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.rsplit("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:27:24
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.split_terminator("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:28:25
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.rsplit_terminator("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:29:17
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2021-05-30 13:35:06 +00:00
|
|
|
|
LL | x.splitn(2, "x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:30:18
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2021-05-30 13:35:06 +00:00
|
|
|
|
LL | x.rsplitn(2, "x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:31:18
|
|
|
|
|
|
|
|
|
|
|
LL | x.split_once("x");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
|
--> $DIR/single_char_pattern.rs:32:19
|
|
|
|
|
|
|
|
|
|
|
LL | x.rsplit_once("x");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
|
--> $DIR/single_char_pattern.rs:33:15
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.matches("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:34:16
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.rmatches("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:35:21
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.match_indices("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:36:22
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.rmatch_indices("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:37:26
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.trim_start_matches("x");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:38:24
|
2017-10-10 04:00:47 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.trim_end_matches("x");
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^ 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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:39:20
|
2021-05-03 14:18:41 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.strip_prefix("x");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:40:20
|
2021-05-03 14:18:41 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.strip_suffix("x");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:41:15
|
|
|
|
|
|
|
|
|
|
|
LL | x.replace("x", "y");
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
|
--> $DIR/single_char_pattern.rs:42:16
|
|
|
|
|
|
|
|
|
|
|
LL | x.replacen("x", "y", 3);
|
|
|
|
|
| ^^^ help: try using a `char` instead: `'x'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
|
|
|
|
--> $DIR/single_char_pattern.rs:44:13
|
2018-03-02 15:00:01 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.split("/n");
|
2020-01-06 06:36:33 +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
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:45:13
|
2019-04-08 12:55:50 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split("'");
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^ help: try using a `char` instead: `'/''`
|
2019-04-08 12:55:50 +00:00
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:46:13
|
2019-04-08 12:55:50 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split("/'");
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^^ help: try using a `char` instead: `'/''`
|
2019-04-08 12:55:50 +00:00
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:51:31
|
2018-07-31 10:20:32 +00:00
|
|
|
|
|
|
2021-12-05 16:33:52 +00:00
|
|
|
|
LL | x.replace(';', ",").split(","); // issue #2978
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^ help: try using a `char` instead: `','`
|
2018-07-31 10:20:32 +00:00
|
|
|
|
|
2018-08-03 08:19:29 +00:00
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:52:19
|
2018-08-03 08:19:29 +00:00
|
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
|
LL | x.starts_with("/x03"); // issue #2996
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^^^^ help: try using a `char` instead: `'/x03'`
|
2018-08-03 08:19:29 +00:00
|
|
|
|
|
2019-08-09 03:45:49 +00:00
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:59:13
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split(r"a");
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^^ help: try using a `char` instead: `'a'`
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:60:13
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split(r#"a"#);
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^^^^ help: try using a `char` instead: `'a'`
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
2019-08-09 03:45:49 +00:00
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:61:13
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split(r###"a"###);
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^^^^^^^^ help: try using a `char` instead: `'a'`
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:62:13
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split(r###"'"###);
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^^^^^^^^ help: try using a `char` instead: `'/''`
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:63:13
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split(r###"#"###);
|
2020-01-06 06:36:33 +00:00
|
|
|
|
| ^^^^^^^^^^ help: try using a `char` instead: `'#'`
|
2019-08-09 03:45:49 +00:00
|
|
|
|
|
2021-12-02 22:47:23 +00:00
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:65:13
|
2021-12-02 22:47:23 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split(r#"/"#);
|
|
|
|
|
| ^^^^^^ help: try using a `char` instead: `'/'`
|
|
|
|
|
|
|
|
|
|
error: single-character string constant used as pattern
|
2021-12-05 16:33:52 +00:00
|
|
|
|
--> $DIR/single_char_pattern.rs:66:13
|
2021-12-02 22:47:23 +00:00
|
|
|
|
|
|
|
|
|
|
LL | x.split(r"/");
|
|
|
|
|
| ^^^^ help: try using a `char` instead: `'/'`
|
|
|
|
|
|
2021-12-05 16:33:52 +00:00
|
|
|
|
error: aborting due to 39 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|
|