|
1 | 1 | error: redundant clone |
2 | | - --> $DIR/redundant_clone.rs:10:42 |
| 2 | + --> $DIR/redundant_clone.rs:11:42 |
3 | 3 | | |
4 | 4 | LL | let _s = ["lorem", "ipsum"].join(" ").to_string(); |
5 | 5 | | ^^^^^^^^^^^^ help: remove this |
6 | 6 | | |
7 | 7 | note: this value is dropped without further use |
8 | | - --> $DIR/redundant_clone.rs:10:14 |
| 8 | + --> $DIR/redundant_clone.rs:11:14 |
9 | 9 | | |
10 | 10 | LL | let _s = ["lorem", "ipsum"].join(" ").to_string(); |
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
12 | 12 | = note: `-D clippy::redundant-clone` implied by `-D warnings` |
13 | 13 |
|
14 | 14 | error: redundant clone |
15 | | - --> $DIR/redundant_clone.rs:13:15 |
| 15 | + --> $DIR/redundant_clone.rs:14:15 |
16 | 16 | | |
17 | 17 | LL | let _s = s.clone(); |
18 | 18 | | ^^^^^^^^ help: remove this |
19 | 19 | | |
20 | 20 | note: this value is dropped without further use |
21 | | - --> $DIR/redundant_clone.rs:13:14 |
| 21 | + --> $DIR/redundant_clone.rs:14:14 |
22 | 22 | | |
23 | 23 | LL | let _s = s.clone(); |
24 | 24 | | ^ |
25 | 25 |
|
26 | 26 | error: redundant clone |
27 | | - --> $DIR/redundant_clone.rs:16:15 |
| 27 | + --> $DIR/redundant_clone.rs:17:15 |
28 | 28 | | |
29 | 29 | LL | let _s = s.to_string(); |
30 | 30 | | ^^^^^^^^^^^^ help: remove this |
31 | 31 | | |
32 | 32 | note: this value is dropped without further use |
33 | | - --> $DIR/redundant_clone.rs:16:14 |
| 33 | + --> $DIR/redundant_clone.rs:17:14 |
34 | 34 | | |
35 | 35 | LL | let _s = s.to_string(); |
36 | 36 | | ^ |
37 | 37 |
|
38 | 38 | error: redundant clone |
39 | | - --> $DIR/redundant_clone.rs:19:15 |
| 39 | + --> $DIR/redundant_clone.rs:20:15 |
40 | 40 | | |
41 | 41 | LL | let _s = s.to_owned(); |
42 | 42 | | ^^^^^^^^^^^ help: remove this |
43 | 43 | | |
44 | 44 | note: this value is dropped without further use |
45 | | - --> $DIR/redundant_clone.rs:19:14 |
| 45 | + --> $DIR/redundant_clone.rs:20:14 |
46 | 46 | | |
47 | 47 | LL | let _s = s.to_owned(); |
48 | 48 | | ^ |
49 | 49 |
|
50 | 50 | error: redundant clone |
51 | | - --> $DIR/redundant_clone.rs:21:42 |
| 51 | + --> $DIR/redundant_clone.rs:22:42 |
52 | 52 | | |
53 | 53 | LL | let _s = Path::new("/a/b/").join("c").to_owned(); |
54 | 54 | | ^^^^^^^^^^^ help: remove this |
55 | 55 | | |
56 | 56 | note: this value is dropped without further use |
57 | | - --> $DIR/redundant_clone.rs:21:14 |
| 57 | + --> $DIR/redundant_clone.rs:22:14 |
58 | 58 | | |
59 | 59 | LL | let _s = Path::new("/a/b/").join("c").to_owned(); |
60 | 60 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
61 | 61 |
|
62 | 62 | error: redundant clone |
63 | | - --> $DIR/redundant_clone.rs:23:42 |
| 63 | + --> $DIR/redundant_clone.rs:24:42 |
64 | 64 | | |
65 | 65 | LL | let _s = Path::new("/a/b/").join("c").to_path_buf(); |
66 | 66 | | ^^^^^^^^^^^^^^ help: remove this |
67 | 67 | | |
68 | 68 | note: this value is dropped without further use |
69 | | - --> $DIR/redundant_clone.rs:23:14 |
| 69 | + --> $DIR/redundant_clone.rs:24:14 |
70 | 70 | | |
71 | 71 | LL | let _s = Path::new("/a/b/").join("c").to_path_buf(); |
72 | 72 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
73 | 73 |
|
74 | 74 | error: redundant clone |
75 | | - --> $DIR/redundant_clone.rs:25:29 |
| 75 | + --> $DIR/redundant_clone.rs:26:29 |
76 | 76 | | |
77 | 77 | LL | let _s = OsString::new().to_owned(); |
78 | 78 | | ^^^^^^^^^^^ help: remove this |
79 | 79 | | |
80 | 80 | note: this value is dropped without further use |
81 | | - --> $DIR/redundant_clone.rs:25:14 |
| 81 | + --> $DIR/redundant_clone.rs:26:14 |
82 | 82 | | |
83 | 83 | LL | let _s = OsString::new().to_owned(); |
84 | 84 | | ^^^^^^^^^^^^^^^ |
85 | 85 |
|
86 | 86 | error: redundant clone |
87 | | - --> $DIR/redundant_clone.rs:27:29 |
| 87 | + --> $DIR/redundant_clone.rs:28:29 |
88 | 88 | | |
89 | 89 | LL | let _s = OsString::new().to_os_string(); |
90 | 90 | | ^^^^^^^^^^^^^^^ help: remove this |
91 | 91 | | |
92 | 92 | note: this value is dropped without further use |
93 | | - --> $DIR/redundant_clone.rs:27:14 |
| 93 | + --> $DIR/redundant_clone.rs:28:14 |
94 | 94 | | |
95 | 95 | LL | let _s = OsString::new().to_os_string(); |
96 | 96 | | ^^^^^^^^^^^^^^^ |
97 | 97 |
|
98 | 98 | error: redundant clone |
99 | | - --> $DIR/redundant_clone.rs:38:19 |
| 99 | + --> $DIR/redundant_clone.rs:39:19 |
100 | 100 | | |
101 | 101 | LL | let _t = tup.0.clone(); |
102 | 102 | | ^^^^^^^^ help: remove this |
103 | 103 | | |
104 | 104 | note: this value is dropped without further use |
105 | | - --> $DIR/redundant_clone.rs:38:14 |
| 105 | + --> $DIR/redundant_clone.rs:39:14 |
106 | 106 | | |
107 | 107 | LL | let _t = tup.0.clone(); |
108 | 108 | | ^^^^^ |
109 | 109 |
|
110 | 110 | error: redundant clone |
111 | | - --> $DIR/redundant_clone.rs:70:25 |
| 111 | + --> $DIR/redundant_clone.rs:71:25 |
112 | 112 | | |
113 | 113 | LL | if b { (a.clone(), a.clone()) } else { (Alpha, a) } |
114 | 114 | | ^^^^^^^^ help: remove this |
115 | 115 | | |
116 | 116 | note: this value is dropped without further use |
117 | | - --> $DIR/redundant_clone.rs:70:24 |
| 117 | + --> $DIR/redundant_clone.rs:71:24 |
118 | 118 | | |
119 | 119 | LL | if b { (a.clone(), a.clone()) } else { (Alpha, a) } |
120 | 120 | | ^ |
121 | 121 |
|
122 | 122 | error: redundant clone |
123 | | - --> $DIR/redundant_clone.rs:127:15 |
| 123 | + --> $DIR/redundant_clone.rs:128:15 |
124 | 124 | | |
125 | 125 | LL | let _s = s.clone(); |
126 | 126 | | ^^^^^^^^ help: remove this |
127 | 127 | | |
128 | 128 | note: this value is dropped without further use |
129 | | - --> $DIR/redundant_clone.rs:127:14 |
| 129 | + --> $DIR/redundant_clone.rs:128:14 |
130 | 130 | | |
131 | 131 | LL | let _s = s.clone(); |
132 | 132 | | ^ |
133 | 133 |
|
134 | 134 | error: redundant clone |
135 | | - --> $DIR/redundant_clone.rs:128:15 |
| 135 | + --> $DIR/redundant_clone.rs:129:15 |
136 | 136 | | |
137 | 137 | LL | let _t = t.clone(); |
138 | 138 | | ^^^^^^^^ help: remove this |
139 | 139 | | |
140 | 140 | note: this value is dropped without further use |
141 | | - --> $DIR/redundant_clone.rs:128:14 |
| 141 | + --> $DIR/redundant_clone.rs:129:14 |
142 | 142 | | |
143 | 143 | LL | let _t = t.clone(); |
144 | 144 | | ^ |
145 | 145 |
|
146 | 146 | error: redundant clone |
147 | | - --> $DIR/redundant_clone.rs:138:19 |
| 147 | + --> $DIR/redundant_clone.rs:139:19 |
148 | 148 | | |
149 | 149 | LL | let _f = f.clone(); |
150 | 150 | | ^^^^^^^^ help: remove this |
151 | 151 | | |
152 | 152 | note: this value is dropped without further use |
153 | | - --> $DIR/redundant_clone.rs:138:18 |
| 153 | + --> $DIR/redundant_clone.rs:139:18 |
154 | 154 | | |
155 | 155 | LL | let _f = f.clone(); |
156 | 156 | | ^ |
157 | 157 |
|
158 | 158 | error: redundant clone |
159 | | - --> $DIR/redundant_clone.rs:150:14 |
| 159 | + --> $DIR/redundant_clone.rs:151:14 |
160 | 160 | | |
161 | 161 | LL | let y = x.clone().join("matthias"); |
162 | 162 | | ^^^^^^^^ help: remove this |
163 | 163 | | |
164 | 164 | note: cloned value is neither consumed nor mutated |
165 | | - --> $DIR/redundant_clone.rs:150:13 |
| 165 | + --> $DIR/redundant_clone.rs:151:13 |
166 | 166 | | |
167 | 167 | LL | let y = x.clone().join("matthias"); |
168 | 168 | | ^^^^^^^^^ |
169 | 169 |
|
170 | 170 | error: redundant clone |
171 | | - --> $DIR/redundant_clone.rs:204:11 |
| 171 | + --> $DIR/redundant_clone.rs:205:11 |
172 | 172 | | |
173 | 173 | LL | foo(&x.clone(), move || { |
174 | 174 | | ^^^^^^^^ help: remove this |
175 | 175 | | |
176 | 176 | note: this value is dropped without further use |
177 | | - --> $DIR/redundant_clone.rs:204:10 |
| 177 | + --> $DIR/redundant_clone.rs:205:10 |
178 | 178 | | |
179 | 179 | LL | foo(&x.clone(), move || { |
180 | 180 | | ^ |
|
0 commit comments