2018-10-23 07:01:45 +00:00
|
|
|
error: redundant clone
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:8:42
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-clone` implied by `-D warnings`
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:8:14
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:11:15
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:11:14
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:14:15
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.to_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:14:14
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.to_string();
|
|
|
|
| ^
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:17:15
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:17:14
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.to_owned();
|
|
|
|
| ^
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:19:42
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:19:14
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-23 07:01:45 +00:00
|
|
|
|
2020-01-08 04:59:58 +00:00
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:21:42
|
|
|
|
|
|
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:21:14
|
|
|
|
|
|
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-23 07:01:45 +00:00
|
|
|
error: redundant clone
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:23:29
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:23:14
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-23 07:01:45 +00:00
|
|
|
|
2020-01-08 04:59:58 +00:00
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:25:29
|
|
|
|
|
|
|
|
|
LL | let _s = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:25:14
|
|
|
|
|
|
|
|
|
LL | let _s = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-23 07:01:45 +00:00
|
|
|
error: redundant clone
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:32:19
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _t = tup.0.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-12-09 11:19:21 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-11-19 08:32:35 +00:00
|
|
|
--> $DIR/redundant_clone.rs:32:14
|
2018-12-09 11:19:21 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _t = tup.0.clone();
|
|
|
|
| ^^^^^
|
2018-12-09 11:19:21 +00:00
|
|
|
|
|
|
|
error: redundant clone
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:62:22
|
2018-12-09 11:19:21 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | (a.clone(), a.clone())
|
2018-10-23 07:01:45 +00:00
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:62:21
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | (a.clone(), a.clone())
|
2018-10-23 07:01:45 +00:00
|
|
|
| ^
|
|
|
|
|
2019-09-16 15:50:15 +00:00
|
|
|
error: redundant clone
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:122:15
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:122:14
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
|
|
error: redundant clone
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:123:15
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _t = t.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:123:14
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
2019-09-10 02:56:34 +00:00
|
|
|
LL | let _t = t.clone();
|
|
|
|
| ^
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
|
|
error: redundant clone
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:133:19
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
|
|
|
LL | let _f = f.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:133:18
|
2019-09-16 15:50:15 +00:00
|
|
|
|
|
|
|
|
LL | let _f = f.clone();
|
|
|
|
| ^
|
|
|
|
|
2020-03-12 15:31:09 +00:00
|
|
|
error: redundant clone
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:145:14
|
2020-03-12 15:31:09 +00:00
|
|
|
|
|
|
|
|
LL | let y = x.clone().join("matthias");
|
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
2020-03-12 16:25:18 +00:00
|
|
|
note: cloned value is neither consumed nor mutated
|
2020-07-26 19:07:07 +00:00
|
|
|
--> $DIR/redundant_clone.rs:145:13
|
2020-03-12 15:31:09 +00:00
|
|
|
|
|
|
|
|
LL | let y = x.clone().join("matthias");
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
2018-10-23 07:01:45 +00:00
|
|
|
|