@@ -68,37 +68,37 @@ LL | a = b.clone();
68
68
| ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
69
69
70
70
error: assigning the result of `ToOwned::to_owned()` may be inefficient
71
- --> $DIR/assigning_clones.rs:134 :5
71
+ --> $DIR/assigning_clones.rs:146 :5
72
72
|
73
73
LL | *mut_string = ref_str.to_owned();
74
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(mut_string)`
75
75
76
76
error: assigning the result of `ToOwned::to_owned()` may be inefficient
77
- --> $DIR/assigning_clones.rs:138 :5
77
+ --> $DIR/assigning_clones.rs:150 :5
78
78
|
79
79
LL | mut_string = ref_str.to_owned();
80
80
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut mut_string)`
81
81
82
82
error: assigning the result of `ToOwned::to_owned()` may be inefficient
83
- --> $DIR/assigning_clones.rs:159 :5
83
+ --> $DIR/assigning_clones.rs:171 :5
84
84
|
85
85
LL | **mut_box_string = ref_str.to_owned();
86
86
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
87
87
88
88
error: assigning the result of `ToOwned::to_owned()` may be inefficient
89
- --> $DIR/assigning_clones.rs:163 :5
89
+ --> $DIR/assigning_clones.rs:175 :5
90
90
|
91
91
LL | **mut_box_string = ref_str.to_owned();
92
92
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
93
93
94
94
error: assigning the result of `ToOwned::to_owned()` may be inefficient
95
- --> $DIR/assigning_clones.rs:167 :5
95
+ --> $DIR/assigning_clones.rs:179 :5
96
96
|
97
97
LL | *mut_thing = ToOwned::to_owned(ref_str);
98
98
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, mut_thing)`
99
99
100
100
error: assigning the result of `ToOwned::to_owned()` may be inefficient
101
- --> $DIR/assigning_clones.rs:171 :5
101
+ --> $DIR/assigning_clones.rs:183 :5
102
102
|
103
103
LL | mut_thing = ToOwned::to_owned(ref_str);
104
104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, &mut mut_thing)`
0 commit comments