@@ -68,37 +68,37 @@ LL | a = b.clone();
6868 | ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
6969
7070error: assigning the result of `ToOwned::to_owned()` may be inefficient
71- --> $DIR/assigning_clones.rs:134 :5
71+ --> $DIR/assigning_clones.rs:146 :5
7272 |
7373LL | *mut_string = ref_str.to_owned();
7474 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(mut_string)`
7575
7676error: assigning the result of `ToOwned::to_owned()` may be inefficient
77- --> $DIR/assigning_clones.rs:138 :5
77+ --> $DIR/assigning_clones.rs:150 :5
7878 |
7979LL | mut_string = ref_str.to_owned();
8080 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut mut_string)`
8181
8282error: assigning the result of `ToOwned::to_owned()` may be inefficient
83- --> $DIR/assigning_clones.rs:159 :5
83+ --> $DIR/assigning_clones.rs:171 :5
8484 |
8585LL | **mut_box_string = ref_str.to_owned();
8686 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
8787
8888error: assigning the result of `ToOwned::to_owned()` may be inefficient
89- --> $DIR/assigning_clones.rs:163 :5
89+ --> $DIR/assigning_clones.rs:175 :5
9090 |
9191LL | **mut_box_string = ref_str.to_owned();
9292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
9393
9494error: assigning the result of `ToOwned::to_owned()` may be inefficient
95- --> $DIR/assigning_clones.rs:167 :5
95+ --> $DIR/assigning_clones.rs:179 :5
9696 |
9797LL | *mut_thing = ToOwned::to_owned(ref_str);
9898 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, mut_thing)`
9999
100100error: assigning the result of `ToOwned::to_owned()` may be inefficient
101- --> $DIR/assigning_clones.rs:171 :5
101+ --> $DIR/assigning_clones.rs:183 :5
102102 |
103103LL | mut_thing = ToOwned::to_owned(ref_str);
104104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, &mut mut_thing)`
0 commit comments