2 --> $DIR/redundant_clone.rs:7:41
4 LL | let _ = ["lorem", "ipsum"].join(" ").to_string();
5 | ^^^^^^^^^^^^ help: remove this
7 = note: `-D clippy::redundant-clone` implied by `-D warnings`
8 note: this value is dropped without further use
9 --> $DIR/redundant_clone.rs:7:13
11 LL | let _ = ["lorem", "ipsum"].join(" ").to_string();
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 error: redundant clone
15 --> $DIR/redundant_clone.rs:10:14
17 LL | let _ = s.clone();
18 | ^^^^^^^^ help: remove this
20 note: this value is dropped without further use
21 --> $DIR/redundant_clone.rs:10:13
23 LL | let _ = s.clone();
26 error: redundant clone
27 --> $DIR/redundant_clone.rs:13:14
29 LL | let _ = s.to_string();
30 | ^^^^^^^^^^^^ help: remove this
32 note: this value is dropped without further use
33 --> $DIR/redundant_clone.rs:13:13
35 LL | let _ = s.to_string();
38 error: redundant clone
39 --> $DIR/redundant_clone.rs:16:14
41 LL | let _ = s.to_owned();
42 | ^^^^^^^^^^^ help: remove this
44 note: this value is dropped without further use
45 --> $DIR/redundant_clone.rs:16:13
47 LL | let _ = s.to_owned();
50 error: redundant clone
51 --> $DIR/redundant_clone.rs:18:41
53 LL | let _ = Path::new("/a/b/").join("c").to_owned();
54 | ^^^^^^^^^^^ help: remove this
56 note: this value is dropped without further use
57 --> $DIR/redundant_clone.rs:18:13
59 LL | let _ = Path::new("/a/b/").join("c").to_owned();
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 error: redundant clone
63 --> $DIR/redundant_clone.rs:20:41
65 LL | let _ = Path::new("/a/b/").join("c").to_path_buf();
66 | ^^^^^^^^^^^^^^ help: remove this
68 note: this value is dropped without further use
69 --> $DIR/redundant_clone.rs:20:13
71 LL | let _ = Path::new("/a/b/").join("c").to_path_buf();
72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 error: redundant clone
75 --> $DIR/redundant_clone.rs:22:28
77 LL | let _ = OsString::new().to_owned();
78 | ^^^^^^^^^^^ help: remove this
80 note: this value is dropped without further use
81 --> $DIR/redundant_clone.rs:22:13
83 LL | let _ = OsString::new().to_owned();
86 error: redundant clone
87 --> $DIR/redundant_clone.rs:24:28
89 LL | let _ = OsString::new().to_os_string();
90 | ^^^^^^^^^^^^^^^ help: remove this
92 note: this value is dropped without further use
93 --> $DIR/redundant_clone.rs:24:13
95 LL | let _ = OsString::new().to_os_string();
98 error: redundant clone
99 --> $DIR/redundant_clone.rs:31:18
101 LL | let _ = tup.0.clone();
102 | ^^^^^^^^ help: remove this
104 note: this value is dropped without further use
105 --> $DIR/redundant_clone.rs:31:13
107 LL | let _ = tup.0.clone();
110 error: redundant clone
111 --> $DIR/redundant_clone.rs:41:22
113 LL | (a.clone(), a.clone())
114 | ^^^^^^^^ help: remove this
116 note: this value is dropped without further use
117 --> $DIR/redundant_clone.rs:41:21
119 LL | (a.clone(), a.clone())
122 error: aborting due to 10 previous errors