@@ -59,18 +59,6 @@ note: this value is dropped without further use
59
59
LL | let _s = Path::new("/a/b/").join("c").to_owned();
60
60
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61
61
62
- error: redundant clone
63
- --> $DIR/redundant_clone.rs:21:42
64
- |
65
- LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
66
- | ^^^^^^^^^^^^^^ help: remove this
67
- |
68
- note: this value is dropped without further use
69
- --> $DIR/redundant_clone.rs:21:14
70
- |
71
- LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
72
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73
-
74
62
error: redundant clone
75
63
--> $DIR/redundant_clone.rs:23:29
76
64
|
@@ -83,18 +71,6 @@ note: this value is dropped without further use
83
71
LL | let _s = OsString::new().to_owned();
84
72
| ^^^^^^^^^^^^^^^
85
73
86
- error: redundant clone
87
- --> $DIR/redundant_clone.rs:25:29
88
- |
89
- LL | let _s = OsString::new().to_os_string();
90
- | ^^^^^^^^^^^^^^^ help: remove this
91
- |
92
- note: this value is dropped without further use
93
- --> $DIR/redundant_clone.rs:25:14
94
- |
95
- LL | let _s = OsString::new().to_os_string();
96
- | ^^^^^^^^^^^^^^^
97
-
98
74
error: redundant clone
99
75
--> $DIR/redundant_clone.rs:32:19
100
76
|
@@ -108,52 +84,52 @@ LL | let _t = tup.0.clone();
108
84
| ^^^^^
109
85
110
86
error: redundant clone
111
- --> $DIR/redundant_clone.rs:58 :22
87
+ --> $DIR/redundant_clone.rs:59 :22
112
88
|
113
89
LL | (a.clone(), a.clone())
114
90
| ^^^^^^^^ help: remove this
115
91
|
116
92
note: this value is dropped without further use
117
- --> $DIR/redundant_clone.rs:58 :21
93
+ --> $DIR/redundant_clone.rs:59 :21
118
94
|
119
95
LL | (a.clone(), a.clone())
120
96
| ^
121
97
122
98
error: redundant clone
123
- --> $DIR/redundant_clone.rs:114 :15
99
+ --> $DIR/redundant_clone.rs:119 :15
124
100
|
125
101
LL | let _s = s.clone();
126
102
| ^^^^^^^^ help: remove this
127
103
|
128
104
note: this value is dropped without further use
129
- --> $DIR/redundant_clone.rs:114 :14
105
+ --> $DIR/redundant_clone.rs:119 :14
130
106
|
131
107
LL | let _s = s.clone();
132
108
| ^
133
109
134
110
error: redundant clone
135
- --> $DIR/redundant_clone.rs:115 :15
111
+ --> $DIR/redundant_clone.rs:120 :15
136
112
|
137
113
LL | let _t = t.clone();
138
114
| ^^^^^^^^ help: remove this
139
115
|
140
116
note: this value is dropped without further use
141
- --> $DIR/redundant_clone.rs:115 :14
117
+ --> $DIR/redundant_clone.rs:120 :14
142
118
|
143
119
LL | let _t = t.clone();
144
120
| ^
145
121
146
122
error: redundant clone
147
- --> $DIR/redundant_clone.rs:125 :19
123
+ --> $DIR/redundant_clone.rs:130 :19
148
124
|
149
125
LL | let _f = f.clone();
150
126
| ^^^^^^^^ help: remove this
151
127
|
152
128
note: this value is dropped without further use
153
- --> $DIR/redundant_clone.rs:125 :18
129
+ --> $DIR/redundant_clone.rs:130 :18
154
130
|
155
131
LL | let _f = f.clone();
156
132
| ^
157
133
158
- error: aborting due to 13 previous errors
134
+ error: aborting due to 11 previous errors
159
135
0 commit comments