2018-10-23 07:01:45 +00:00
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:16:41
|
|
|
|
|
|
|
|
|
16 | let _ = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^ 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
|
|
|
|
|
|
|
|
|
16 | let _ = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:19:14
|
|
|
|
|
|
|
|
|
19 | let _ = s.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:19:13
|
|
|
|
|
|
|
|
|
19 | let _ = s.clone();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:22:14
|
|
|
|
|
|
|
|
|
22 | let _ = s.to_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:22:13
|
|
|
|
|
|
|
|
|
22 | let _ = s.to_string();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:25:14
|
|
|
|
|
|
|
|
|
25 | let _ = s.to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:25:13
|
|
|
|
|
|
|
|
|
25 | let _ = s.to_owned();
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:27:41
|
|
|
|
|
|
|
|
|
27 | let _ = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:27:13
|
|
|
|
|
|
|
|
|
27 | let _ = Path::new("/a/b/").join("c").to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:29:41
|
|
|
|
|
|
|
|
|
29 | let _ = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:29:13
|
|
|
|
|
|
|
|
|
29 | let _ = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:31:28
|
|
|
|
|
|
|
|
|
31 | let _ = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:31:13
|
|
|
|
|
|
|
|
|
31 | let _ = OsString::new().to_owned();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:33:28
|
|
|
|
|
|
|
|
|
33 | let _ = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:33:13
|
|
|
|
|
|
|
|
|
33 | let _ = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: redundant clone
|
2018-10-25 12:08:32 +00:00
|
|
|
--> $DIR/redundant_clone.rs:43:22
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2018-10-25 12:08:32 +00:00
|
|
|
43 | (a.clone(), a.clone())
|
2018-10-23 07:01:45 +00:00
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2018-10-25 12:08:32 +00:00
|
|
|
--> $DIR/redundant_clone.rs:43:21
|
2018-10-23 07:01:45 +00:00
|
|
|
|
|
2018-10-25 12:08:32 +00:00
|
|
|
43 | (a.clone(), a.clone())
|
2018-10-23 07:01:45 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|