2018-10-23 09:01:45 +02:00
|
|
|
error: redundant clone
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:8:42
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-clone` implied by `-D warnings`
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:8:14
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:11:15
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:11:14
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:14:15
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.to_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:14:14
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.to_string();
|
|
|
|
| ^
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:17:15
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:17:14
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.to_owned();
|
|
|
|
| ^
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:19:42
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:19:14
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:23:29
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:23:14
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:32:19
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _t = tup.0.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-12-09 12:19:21 +01:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 09:32:35 +01:00
|
|
|
--> $DIR/redundant_clone.rs:32:14
|
2018-12-09 12:19:21 +01:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _t = tup.0.clone();
|
|
|
|
| ^^^^^
|
2018-12-09 12:19:21 +01:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:59:22
|
2018-12-09 12:19:21 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | (a.clone(), a.clone())
|
2018-10-23 09:01:45 +02:00
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:59:21
|
2018-10-23 09:01:45 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | (a.clone(), a.clone())
|
2018-10-23 09:01:45 +02:00
|
|
|
| ^
|
|
|
|
|
2019-09-16 17:50:15 +02:00
|
|
|
error: redundant clone
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:119:15
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:119:14
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:120:15
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _t = t.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:120:14
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
2019-09-10 04:56:34 +02:00
|
|
|
LL | let _t = t.clone();
|
|
|
|
| ^
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:130:19
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
|
|
|
LL | let _f = f.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-22 14:24:38 +01:00
|
|
|
--> $DIR/redundant_clone.rs:130:18
|
2019-09-16 17:50:15 +02:00
|
|
|
|
|
|
|
|
LL | let _f = f.clone();
|
|
|
|
| ^
|
|
|
|
|
2019-11-22 14:24:38 +01:00
|
|
|
error: aborting due to 11 previous errors
|
2018-10-23 09:01:45 +02:00
|
|
|
|