5
5
6
6
7
7
#[ repr( C ) ]
8
- #[ derive( Debug , Default , Copy ) ]
8
+ #[ derive( Debug , Default , Copy , Clone ) ]
9
9
pub struct SomeAccessors {
10
10
pub mNoAccessor : :: std:: os:: raw:: c_int ,
11
11
/// <div rustbindgen accessor></div>
@@ -68,11 +68,6 @@ fn bindgen_test_layout_SomeAccessors() {
68
68
)
69
69
) ;
70
70
}
71
- impl Clone for SomeAccessors {
72
- fn clone ( & self ) -> Self {
73
- * self
74
- }
75
- }
76
71
impl SomeAccessors {
77
72
#[ inline]
78
73
pub fn get_mBothAccessors ( & self ) -> & :: std:: os:: raw:: c_int {
@@ -97,7 +92,7 @@ impl SomeAccessors {
97
92
}
98
93
/// <div rustbindgen accessor></div>
99
94
#[ repr( C ) ]
100
- #[ derive( Debug , Default , Copy ) ]
95
+ #[ derive( Debug , Default , Copy , Clone ) ]
101
96
pub struct AllAccessors {
102
97
pub mBothAccessors : :: std:: os:: raw:: c_int ,
103
98
pub mAlsoBothAccessors : :: std:: os:: raw:: c_int ,
@@ -135,11 +130,6 @@ fn bindgen_test_layout_AllAccessors() {
135
130
)
136
131
) ;
137
132
}
138
- impl Clone for AllAccessors {
139
- fn clone ( & self ) -> Self {
140
- * self
141
- }
142
- }
143
133
impl AllAccessors {
144
134
#[ inline]
145
135
pub fn get_mBothAccessors ( & self ) -> & :: std:: os:: raw:: c_int {
@@ -160,7 +150,7 @@ impl AllAccessors {
160
150
}
161
151
/// <div rustbindgen accessor="unsafe"></div>
162
152
#[ repr( C ) ]
163
- #[ derive( Debug , Default , Copy ) ]
153
+ #[ derive( Debug , Default , Copy , Clone ) ]
164
154
pub struct AllUnsafeAccessors {
165
155
pub mBothAccessors : :: std:: os:: raw:: c_int ,
166
156
pub mAlsoBothAccessors : :: std:: os:: raw:: c_int ,
@@ -198,11 +188,6 @@ fn bindgen_test_layout_AllUnsafeAccessors() {
198
188
)
199
189
) ;
200
190
}
201
- impl Clone for AllUnsafeAccessors {
202
- fn clone ( & self ) -> Self {
203
- * self
204
- }
205
- }
206
191
impl AllUnsafeAccessors {
207
192
#[ inline]
208
193
pub unsafe fn get_mBothAccessors ( & self ) -> & :: std:: os:: raw:: c_int {
@@ -223,7 +208,7 @@ impl AllUnsafeAccessors {
223
208
}
224
209
/// <div rustbindgen accessor></div>
225
210
#[ repr( C ) ]
226
- #[ derive( Debug , Default , Copy ) ]
211
+ #[ derive( Debug , Default , Copy , Clone ) ]
227
212
pub struct ContradictAccessors {
228
213
pub mBothAccessors : :: std:: os:: raw:: c_int ,
229
214
/// <div rustbindgen accessor="false"></div>
@@ -286,11 +271,6 @@ fn bindgen_test_layout_ContradictAccessors() {
286
271
)
287
272
) ;
288
273
}
289
- impl Clone for ContradictAccessors {
290
- fn clone ( & self ) -> Self {
291
- * self
292
- }
293
- }
294
274
impl ContradictAccessors {
295
275
#[ inline]
296
276
pub fn get_mBothAccessors ( & self ) -> & :: std:: os:: raw:: c_int {
@@ -315,7 +295,7 @@ impl ContradictAccessors {
315
295
}
316
296
/// <div rustbindgen accessor replaces="Replaced"></div>
317
297
#[ repr( C ) ]
318
- #[ derive( Debug , Default , Copy ) ]
298
+ #[ derive( Debug , Default , Copy , Clone ) ]
319
299
pub struct Replaced {
320
300
pub mAccessor : :: std:: os:: raw:: c_int ,
321
301
}
@@ -342,11 +322,6 @@ fn bindgen_test_layout_Replaced() {
342
322
)
343
323
) ;
344
324
}
345
- impl Clone for Replaced {
346
- fn clone ( & self ) -> Self {
347
- * self
348
- }
349
- }
350
325
impl Replaced {
351
326
#[ inline]
352
327
pub fn get_mAccessor ( & self ) -> & :: std:: os:: raw:: c_int {
@@ -359,7 +334,7 @@ impl Replaced {
359
334
}
360
335
/// <div rustbindgen accessor></div>
361
336
#[ repr( C ) ]
362
- #[ derive( Debug , Default , Copy ) ]
337
+ #[ derive( Debug , Default , Copy , Clone ) ]
363
338
pub struct Wrapper {
364
339
pub mReplaced : Replaced ,
365
340
}
@@ -386,11 +361,6 @@ fn bindgen_test_layout_Wrapper() {
386
361
)
387
362
) ;
388
363
}
389
- impl Clone for Wrapper {
390
- fn clone ( & self ) -> Self {
391
- * self
392
- }
393
- }
394
364
impl Wrapper {
395
365
#[ inline]
396
366
pub fn get_mReplaced ( & self ) -> & Replaced {
0 commit comments