@@ -86,37 +86,37 @@ LL | a = c.to_owned();
8686 | ^^^^^^^^^^^^^^^^ help: use `clone_into()`: `c.clone_into(&mut a)`
8787
8888error: assigning the result of `ToOwned::to_owned()` may be inefficient
89- --> tests/ui/assigning_clones.rs:158 :5
89+ --> tests/ui/assigning_clones.rs:171 :5
9090 |
9191LL | *mut_string = ref_str.to_owned();
9292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(mut_string)`
9393
9494error: assigning the result of `ToOwned::to_owned()` may be inefficient
95- --> tests/ui/assigning_clones.rs:162 :5
95+ --> tests/ui/assigning_clones.rs:175 :5
9696 |
9797LL | mut_string = ref_str.to_owned();
9898 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut mut_string)`
9999
100100error: assigning the result of `ToOwned::to_owned()` may be inefficient
101- --> tests/ui/assigning_clones.rs:183 :5
101+ --> tests/ui/assigning_clones.rs:196 :5
102102 |
103103LL | **mut_box_string = ref_str.to_owned();
104104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
105105
106106error: assigning the result of `ToOwned::to_owned()` may be inefficient
107- --> tests/ui/assigning_clones.rs:187 :5
107+ --> tests/ui/assigning_clones.rs:200 :5
108108 |
109109LL | **mut_box_string = ref_str.to_owned();
110110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
111111
112112error: assigning the result of `ToOwned::to_owned()` may be inefficient
113- --> tests/ui/assigning_clones.rs:191 :5
113+ --> tests/ui/assigning_clones.rs:204 :5
114114 |
115115LL | *mut_thing = ToOwned::to_owned(ref_str);
116116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, mut_thing)`
117117
118118error: assigning the result of `ToOwned::to_owned()` may be inefficient
119- --> tests/ui/assigning_clones.rs:195 :5
119+ --> tests/ui/assigning_clones.rs:208 :5
120120 |
121121LL | mut_thing = ToOwned::to_owned(ref_str);
122122 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, &mut mut_thing)`
0 commit comments