@@ -86,37 +86,37 @@ LL | a = c.to_owned();
86
86
| ^^^^^^^^^^^^^^^^ help: use `clone_into()`: `c.clone_into(&mut a)`
87
87
88
88
error: 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
90
90
|
91
91
LL | *mut_string = ref_str.to_owned();
92
92
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(mut_string)`
93
93
94
94
error: 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
96
96
|
97
97
LL | mut_string = ref_str.to_owned();
98
98
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut mut_string)`
99
99
100
100
error: 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
102
102
|
103
103
LL | **mut_box_string = ref_str.to_owned();
104
104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
105
105
106
106
error: 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
108
108
|
109
109
LL | **mut_box_string = ref_str.to_owned();
110
110
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ref_str.clone_into(&mut (*mut_box_string))`
111
111
112
112
error: 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
114
114
|
115
115
LL | *mut_thing = ToOwned::to_owned(ref_str);
116
116
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, mut_thing)`
117
117
118
118
error: 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
120
120
|
121
121
LL | mut_thing = ToOwned::to_owned(ref_str);
122
122
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_into()`: `ToOwned::clone_into(ref_str, &mut mut_thing)`
0 commit comments