@@ -68,55 +68,55 @@ LL | a = b.clone();
6868 | ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
6969
7070error: assigning the result of `Clone::clone()` may be inefficient
71- --> tests/ui/assigning_clones.rs:133 :5
71+ --> tests/ui/assigning_clones.rs:139 :5
7272 |
7373LL | a = b.clone();
7474 | ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
7575
7676error: assigning the result of `Clone::clone()` may be inefficient
77- --> tests/ui/assigning_clones.rs:140 :5
77+ --> tests/ui/assigning_clones.rs:146 :5
7878 |
7979LL | a = b.clone();
8080 | ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
8181
8282error: assigning the result of `ToOwned::to_owned()` may be inefficient
83- --> tests/ui/assigning_clones.rs:141 :5
83+ --> tests/ui/assigning_clones.rs:147 :5
8484 |
8585LL | 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:171 :5
89+ --> tests/ui/assigning_clones.rs:177 :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:175 :5
95+ --> tests/ui/assigning_clones.rs:181 :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:196 :5
101+ --> tests/ui/assigning_clones.rs:202 :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:200 :5
107+ --> tests/ui/assigning_clones.rs:206 :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:204 :5
113+ --> tests/ui/assigning_clones.rs:210 :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:208 :5
119+ --> tests/ui/assigning_clones.rs:214 :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