2018-10-23 02:01:45 -05:00
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:7:42
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-clone` implied by `-D warnings`
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:7:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:10:15
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:10:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:13:15
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.to_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:13:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.to_string();
|
|
|
|
| ^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:16:15
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:16:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.to_owned();
|
|
|
|
| ^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:18:42
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:18:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:20:42
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:20:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:22:29
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:22:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:24:29
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:24:14
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:31:19
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _t = tup.0.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-12-09 05:19:21 -06:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:31:14
|
2018-12-09 05:19:21 -06:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _t = tup.0.clone();
|
|
|
|
| ^^^^^
|
2018-12-09 05:19:21 -06:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:57:22
|
2018-12-09 05:19:21 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (a.clone(), a.clone())
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:57:21
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | (a.clone(), a.clone())
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^
|
|
|
|
|
2019-09-16 10:50:15 -05:00
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:113:15
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:113:14
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _s = s.clone();
|
|
|
|
| ^
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:114:15
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _t = t.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:114:14
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
2019-09-09 21:56:34 -05:00
|
|
|
LL | let _t = t.clone();
|
|
|
|
| ^
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:124:19
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
|
|
|
LL | let _f = f.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2019-09-09 21:56:34 -05:00
|
|
|
--> $DIR/redundant_clone.rs:124:18
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
|
|
|
LL | let _f = f.clone();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
2018-10-23 02:01:45 -05:00
|
|
|
|