2018-10-23 02:01:45 -05:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:10: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: this value is dropped without further use
|
2022-06-30 03:50:09 -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 = ["lorem", "ipsum"].join(" ").to_string();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::redundant-clone` implied by `-D warnings`
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -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.clone();
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2022-06-30 03:50:09 -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.clone();
|
|
|
|
| ^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -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_string();
|
|
|
|
| ^^^^^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2022-06-30 03:50:09 -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_string();
|
|
|
|
| ^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:19: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:19: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:21: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:21: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
|
|
|
|
2020-01-07 22:59:58 -06:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:23:42
|
2020-01-07 22:59:58 -06:00
|
|
|
|
|
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:23:14
|
2020-01-07 22:59:58 -06:00
|
|
|
|
|
|
|
|
LL | let _s = Path::new("/a/b/").join("c").to_path_buf();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-23 02:01:45 -05:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:25: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:25: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
|
|
|
|
2020-01-07 22:59:58 -06:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:27:29
|
2020-01-07 22:59:58 -06:00
|
|
|
|
|
|
|
|
LL | let _s = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:27:14
|
2020-01-07 22:59:58 -06:00
|
|
|
|
|
|
|
|
LL | let _s = OsString::new().to_os_string();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2018-10-23 02:01:45 -05:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:38: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:38: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:70:25
|
2018-12-09 05:19:21 -06:00
|
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
LL | if b { (a.clone(), a.clone()) } else { (Alpha, a) }
|
|
|
|
| ^^^^^^^^ help: remove this
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:70:24
|
2018-10-23 02:01:45 -05:00
|
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
LL | if b { (a.clone(), a.clone()) } else { (Alpha, a) }
|
|
|
|
| ^
|
2018-10-23 02:01:45 -05:00
|
|
|
|
2019-09-16 10:50:15 -05:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:127: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:127: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:128: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:128: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:138: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
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:138:18
|
2019-09-16 10:50:15 -05:00
|
|
|
|
|
|
|
|
LL | let _f = f.clone();
|
|
|
|
| ^
|
|
|
|
|
2020-03-12 10:31:09 -05:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:150:14
|
2020-03-12 10:31:09 -05:00
|
|
|
|
|
|
|
|
LL | let y = x.clone().join("matthias");
|
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
2020-03-12 11:25:18 -05:00
|
|
|
note: cloned value is neither consumed nor mutated
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:150:13
|
2020-03-12 10:31:09 -05:00
|
|
|
|
|
|
|
|
LL | let y = x.clone().join("matthias");
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2021-11-04 07:52:36 -05:00
|
|
|
error: redundant clone
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:204:11
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | foo(&x.clone(), move || {
|
|
|
|
| ^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/redundant_clone.rs:204:10
|
2021-11-04 07:52:36 -05:00
|
|
|
|
|
|
|
|
LL | foo(&x.clone(), move || {
|
|
|
|
| ^
|
|
|
|
|
2022-12-29 07:28:34 -06:00
|
|
|
error: redundant clone
|
|
|
|
--> $DIR/redundant_clone.rs:246:40
|
|
|
|
|
|
|
|
|
LL | s = s.chars().filter(|&c| c != 'o').to_owned().collect();
|
|
|
|
| ^^^^^^^^^^^ help: remove this
|
|
|
|
|
|
|
|
|
note: this value is dropped without further use
|
|
|
|
--> $DIR/redundant_clone.rs:246:9
|
|
|
|
|
|
|
|
|
LL | s = s.chars().filter(|&c| c != 'o').to_owned().collect();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
2018-10-23 02:01:45 -05:00
|
|
|
|