6
6
// cd generate-windows-sys/
7
7
// cargo run
8
8
// ```
9
- // Bindings generated by `windows-bindgen` 0.55 .0
9
+ // Bindings generated by `windows-bindgen` 0.57 .0
10
10
11
11
#![ allow(
12
12
non_snake_case,
@@ -133,31 +133,21 @@ pub const ERROR_SUCCESS: WIN32_ERROR = 0u32;
133
133
pub const FALSE : BOOL = 0i32 ;
134
134
pub type FARPROC = Option < unsafe extern "system" fn ( ) -> isize > ;
135
135
#[ repr( C ) ]
136
+ #[ derive( Clone , Copy ) ]
136
137
pub struct FILETIME {
137
138
pub dwLowDateTime : u32 ,
138
139
pub dwHighDateTime : u32 ,
139
140
}
140
- impl Copy for FILETIME { }
141
- impl Clone for FILETIME {
142
- fn clone ( & self ) -> Self {
143
- * self
144
- }
145
- }
146
141
pub const FILE_ATTRIBUTE_TEMPORARY : FILE_FLAGS_AND_ATTRIBUTES = 256u32 ;
147
142
pub type FILE_FLAGS_AND_ATTRIBUTES = u32 ;
148
143
#[ repr( C ) ]
144
+ #[ derive( Clone , Copy ) ]
149
145
pub struct GUID {
150
146
pub data1 : u32 ,
151
147
pub data2 : u16 ,
152
148
pub data3 : u16 ,
153
149
pub data4 : [ u8 ; 8 ] ,
154
150
}
155
- impl Copy for GUID { }
156
- impl Clone for GUID {
157
- fn clone ( & self ) -> Self {
158
- * self
159
- }
160
- }
161
151
impl GUID {
162
152
pub const fn from_u128 ( uuid : u128 ) -> Self {
163
153
Self {
@@ -185,6 +175,7 @@ pub type REG_SAM_FLAGS = u32;
185
175
pub const REG_SZ : REG_VALUE_TYPE = 1u32 ;
186
176
pub type REG_VALUE_TYPE = u32 ;
187
177
#[ repr( C ) ]
178
+ #[ derive( Clone , Copy ) ]
188
179
pub struct SAFEARRAY {
189
180
pub cDims : u16 ,
190
181
pub fFeatures : ADVANCED_FEATURE_FLAGS ,
@@ -193,23 +184,12 @@ pub struct SAFEARRAY {
193
184
pub pvData : * mut core:: ffi:: c_void ,
194
185
pub rgsabound : [ SAFEARRAYBOUND ; 1 ] ,
195
186
}
196
- impl Copy for SAFEARRAY { }
197
- impl Clone for SAFEARRAY {
198
- fn clone ( & self ) -> Self {
199
- * self
200
- }
201
- }
202
187
#[ repr( C ) ]
188
+ #[ derive( Clone , Copy ) ]
203
189
pub struct SAFEARRAYBOUND {
204
190
pub cElements : u32 ,
205
191
pub lLbound : i32 ,
206
192
}
207
- impl Copy for SAFEARRAYBOUND { }
208
- impl Clone for SAFEARRAYBOUND {
209
- fn clone ( & self ) -> Self {
210
- * self
211
- }
212
- }
213
193
pub const SEMAPHORE_MODIFY_STATE : SYNCHRONIZATION_ACCESS_RIGHTS = 2u32 ;
214
194
pub type SYNCHRONIZATION_ACCESS_RIGHTS = u32 ;
215
195
pub const S_FALSE : HRESULT = 0x1_u32 as _ ;
0 commit comments