2018-10-23 02:01:45 -05:00
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:16:41
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = ["lorem", "ipsum"].join(" ").to_string();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-clone` implied by `-D warnings`
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:16:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = ["lorem", "ipsum"].join(" ").to_string();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:19:14
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = s.clone();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:19:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = s.clone();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:22:14
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = s.to_string();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:22:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = s.to_string();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:25:14
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = s.to_owned();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:25:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = s.to_owned();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:27:41
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = Path::new("/a/b/").join("c").to_owned();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:27:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = Path::new("/a/b/").join("c").to_owned();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:29:41
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = Path::new("/a/b/").join("c").to_path_buf();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:29:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = Path::new("/a/b/").join("c").to_path_buf();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:31:28
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = OsString::new().to_owned();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:31:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = OsString::new().to_owned();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:33:28
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = OsString::new().to_os_string();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:33:13
|
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = OsString::new().to_os_string();
|
2018-10-23 02:01:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
2018-12-10 18:41:59 -06:00
|
|
|
--> $DIR/redundant_clone.rs:40:18
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = tup.0.clone();
|
2018-12-09 05:19:21 -06:00
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2018-12-10 18:41:59 -06:00
|
|
|
--> $DIR/redundant_clone.rs:40:13
|
2018-12-09 05:19:21 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let _ = tup.0.clone();
|
2018-12-09 05:19:21 -06:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
2018-12-10 18:41:59 -06:00
|
|
|
--> $DIR/redundant_clone.rs:50: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
|
2018-12-10 18:41:59 -06:00
|
|
|
--> $DIR/redundant_clone.rs:50: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
|
|
|
| ^
|
|
|
|
|
2018-12-09 05:19:21 -06:00
|
|
|
error: aborting due to 10 previous errors
|
2018-10-23 02:01:45 -05:00
|
|
|
|