@@ -68,55 +68,55 @@ LL | a = b.clone();
68
68
| ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
69
69
70
70
error: 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
72
72
|
73
73
LL | a = b.clone();
74
74
| ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
75
75
76
76
error: 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
78
78
|
79
79
LL | a = b.clone();
80
80
| ^^^^^^^^^^^^^ help: use `clone_from()`: `a.clone_from(&b)`
81
81
82
82
error: 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
84
84
|
85
85
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:171 :5
89
+ --> tests/ui/assigning_clones.rs:177 :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:175 :5
95
+ --> tests/ui/assigning_clones.rs:181 :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:196 :5
101
+ --> tests/ui/assigning_clones.rs:202 :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:200 :5
107
+ --> tests/ui/assigning_clones.rs:206 :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:204 :5
113
+ --> tests/ui/assigning_clones.rs:210 :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:208 :5
119
+ --> tests/ui/assigning_clones.rs:214 :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