|
1 | 1 | error: single-character string constant used as pattern
|
2 |
| - --> $DIR/single_char_pattern.rs:7:13 |
| 2 | + --> $DIR/single_char_pattern.rs:9:13 |
3 | 3 | |
|
4 | 4 | LL | x.split("x");
|
5 | 5 | | ^^^ help: try using a char instead: `'x'`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::single-char-pattern` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: single-character string constant used as pattern
|
10 |
| - --> $DIR/single_char_pattern.rs:24:16 |
| 10 | + --> $DIR/single_char_pattern.rs:26:16 |
11 | 11 | |
|
12 | 12 | LL | x.contains("x");
|
13 | 13 | | ^^^ help: try using a char instead: `'x'`
|
14 | 14 |
|
15 | 15 | error: single-character string constant used as pattern
|
16 |
| - --> $DIR/single_char_pattern.rs:25:19 |
| 16 | + --> $DIR/single_char_pattern.rs:27:19 |
17 | 17 | |
|
18 | 18 | LL | x.starts_with("x");
|
19 | 19 | | ^^^ help: try using a char instead: `'x'`
|
20 | 20 |
|
21 | 21 | error: single-character string constant used as pattern
|
22 |
| - --> $DIR/single_char_pattern.rs:26:17 |
| 22 | + --> $DIR/single_char_pattern.rs:28:17 |
23 | 23 | |
|
24 | 24 | LL | x.ends_with("x");
|
25 | 25 | | ^^^ help: try using a char instead: `'x'`
|
26 | 26 |
|
27 | 27 | error: single-character string constant used as pattern
|
28 |
| - --> $DIR/single_char_pattern.rs:27:12 |
| 28 | + --> $DIR/single_char_pattern.rs:29:12 |
29 | 29 | |
|
30 | 30 | LL | x.find("x");
|
31 | 31 | | ^^^ help: try using a char instead: `'x'`
|
32 | 32 |
|
33 | 33 | error: single-character string constant used as pattern
|
34 |
| - --> $DIR/single_char_pattern.rs:28:13 |
| 34 | + --> $DIR/single_char_pattern.rs:30:13 |
35 | 35 | |
|
36 | 36 | LL | x.rfind("x");
|
37 | 37 | | ^^^ help: try using a char instead: `'x'`
|
38 | 38 |
|
39 | 39 | error: single-character string constant used as pattern
|
40 |
| - --> $DIR/single_char_pattern.rs:29:14 |
| 40 | + --> $DIR/single_char_pattern.rs:31:14 |
41 | 41 | |
|
42 | 42 | LL | x.rsplit("x");
|
43 | 43 | | ^^^ help: try using a char instead: `'x'`
|
44 | 44 |
|
45 | 45 | error: single-character string constant used as pattern
|
46 |
| - --> $DIR/single_char_pattern.rs:30:24 |
| 46 | + --> $DIR/single_char_pattern.rs:32:24 |
47 | 47 | |
|
48 | 48 | LL | x.split_terminator("x");
|
49 | 49 | | ^^^ help: try using a char instead: `'x'`
|
50 | 50 |
|
51 | 51 | error: single-character string constant used as pattern
|
52 |
| - --> $DIR/single_char_pattern.rs:31:25 |
| 52 | + --> $DIR/single_char_pattern.rs:33:25 |
53 | 53 | |
|
54 | 54 | LL | x.rsplit_terminator("x");
|
55 | 55 | | ^^^ help: try using a char instead: `'x'`
|
56 | 56 |
|
57 | 57 | error: single-character string constant used as pattern
|
58 |
| - --> $DIR/single_char_pattern.rs:32:17 |
| 58 | + --> $DIR/single_char_pattern.rs:34:17 |
59 | 59 | |
|
60 | 60 | LL | x.splitn(0, "x");
|
61 | 61 | | ^^^ help: try using a char instead: `'x'`
|
62 | 62 |
|
63 | 63 | error: single-character string constant used as pattern
|
64 |
| - --> $DIR/single_char_pattern.rs:33:18 |
| 64 | + --> $DIR/single_char_pattern.rs:35:18 |
65 | 65 | |
|
66 | 66 | LL | x.rsplitn(0, "x");
|
67 | 67 | | ^^^ help: try using a char instead: `'x'`
|
68 | 68 |
|
69 | 69 | error: single-character string constant used as pattern
|
70 |
| - --> $DIR/single_char_pattern.rs:34:15 |
| 70 | + --> $DIR/single_char_pattern.rs:36:15 |
71 | 71 | |
|
72 | 72 | LL | x.matches("x");
|
73 | 73 | | ^^^ help: try using a char instead: `'x'`
|
74 | 74 |
|
75 | 75 | error: single-character string constant used as pattern
|
76 |
| - --> $DIR/single_char_pattern.rs:35:16 |
| 76 | + --> $DIR/single_char_pattern.rs:37:16 |
77 | 77 | |
|
78 | 78 | LL | x.rmatches("x");
|
79 | 79 | | ^^^ help: try using a char instead: `'x'`
|
80 | 80 |
|
81 | 81 | error: single-character string constant used as pattern
|
82 |
| - --> $DIR/single_char_pattern.rs:36:21 |
| 82 | + --> $DIR/single_char_pattern.rs:38:21 |
83 | 83 | |
|
84 | 84 | LL | x.match_indices("x");
|
85 | 85 | | ^^^ help: try using a char instead: `'x'`
|
86 | 86 |
|
87 | 87 | error: single-character string constant used as pattern
|
88 |
| - --> $DIR/single_char_pattern.rs:37:22 |
| 88 | + --> $DIR/single_char_pattern.rs:39:22 |
89 | 89 | |
|
90 | 90 | LL | x.rmatch_indices("x");
|
91 | 91 | | ^^^ help: try using a char instead: `'x'`
|
92 | 92 |
|
93 | 93 | error: single-character string constant used as pattern
|
94 |
| - --> $DIR/single_char_pattern.rs:38:26 |
| 94 | + --> $DIR/single_char_pattern.rs:40:26 |
95 | 95 | |
|
96 | 96 | LL | x.trim_start_matches("x");
|
97 | 97 | | ^^^ help: try using a char instead: `'x'`
|
98 | 98 |
|
99 | 99 | error: single-character string constant used as pattern
|
100 |
| - --> $DIR/single_char_pattern.rs:39:24 |
| 100 | + --> $DIR/single_char_pattern.rs:41:24 |
101 | 101 | |
|
102 | 102 | LL | x.trim_end_matches("x");
|
103 | 103 | | ^^^ help: try using a char instead: `'x'`
|
104 | 104 |
|
105 | 105 | error: single-character string constant used as pattern
|
106 |
| - --> $DIR/single_char_pattern.rs:41:13 |
| 106 | + --> $DIR/single_char_pattern.rs:43:13 |
107 | 107 | |
|
108 | 108 | LL | x.split("/n");
|
109 | 109 | | ^^^^ help: try using a char instead: `'/n'`
|
110 | 110 |
|
111 | 111 | error: single-character string constant used as pattern
|
112 |
| - --> $DIR/single_char_pattern.rs:46:31 |
| 112 | + --> $DIR/single_char_pattern.rs:48:31 |
113 | 113 | |
|
114 | 114 | LL | x.replace(";", ",").split(","); // issue #2978
|
115 | 115 | | ^^^ help: try using a char instead: `','`
|
116 | 116 |
|
117 | 117 | error: single-character string constant used as pattern
|
118 |
| - --> $DIR/single_char_pattern.rs:47:19 |
| 118 | + --> $DIR/single_char_pattern.rs:49:19 |
119 | 119 | |
|
120 | 120 | LL | x.starts_with("/x03"); // issue #2996
|
121 | 121 | | ^^^^^^ help: try using a char instead: `'/x03'`
|
|
0 commit comments