160 lines
4.2 KiB
Plaintext
160 lines
4.2 KiB
Plaintext
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:7:41
|
|
|
|
|
LL | 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:7:13
|
|
|
|
|
LL | let _ = ["lorem", "ipsum"].join(" ").to_string();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:10:14
|
|
|
|
|
LL | let _ = s.clone();
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:10:13
|
|
|
|
|
LL | let _ = s.clone();
|
|
| ^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:13:14
|
|
|
|
|
LL | let _ = s.to_string();
|
|
| ^^^^^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:13:13
|
|
|
|
|
LL | let _ = s.to_string();
|
|
| ^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:16:14
|
|
|
|
|
LL | let _ = s.to_owned();
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:16:13
|
|
|
|
|
LL | let _ = s.to_owned();
|
|
| ^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:18:41
|
|
|
|
|
LL | let _ = Path::new("/a/b/").join("c").to_owned();
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:18:13
|
|
|
|
|
LL | let _ = Path::new("/a/b/").join("c").to_owned();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:20:41
|
|
|
|
|
LL | 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:20:13
|
|
|
|
|
LL | let _ = Path::new("/a/b/").join("c").to_path_buf();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:22:28
|
|
|
|
|
LL | let _ = OsString::new().to_owned();
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:22:13
|
|
|
|
|
LL | let _ = OsString::new().to_owned();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:24:28
|
|
|
|
|
LL | let _ = OsString::new().to_os_string();
|
|
| ^^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:24:13
|
|
|
|
|
LL | let _ = OsString::new().to_os_string();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:31:18
|
|
|
|
|
LL | let _ = tup.0.clone();
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:31:13
|
|
|
|
|
LL | let _ = tup.0.clone();
|
|
| ^^^^^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:53:22
|
|
|
|
|
LL | (a.clone(), a.clone())
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:53:21
|
|
|
|
|
LL | (a.clone(), a.clone())
|
|
| ^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:109:14
|
|
|
|
|
LL | let _ = s.clone();
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:109:13
|
|
|
|
|
LL | let _ = s.clone();
|
|
| ^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:110:14
|
|
|
|
|
LL | let _ = t.clone();
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:110:13
|
|
|
|
|
LL | let _ = t.clone();
|
|
| ^
|
|
|
|
error: redundant clone
|
|
--> $DIR/redundant_clone.rs:120:19
|
|
|
|
|
LL | let _f = f.clone();
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
note: this value is dropped without further use
|
|
--> $DIR/redundant_clone.rs:120:18
|
|
|
|
|
LL | let _f = f.clone();
|
|
| ^
|
|
|
|
error: aborting due to 13 previous errors
|
|
|