66// cd generate-windows-sys/
77// cargo run
88// ```
9- // Bindings generated by `windows-bindgen` 0.55 .0
9+ // Bindings generated by `windows-bindgen` 0.57 .0
1010
1111#![ allow(
1212 non_snake_case,
@@ -133,31 +133,21 @@ pub const ERROR_SUCCESS: WIN32_ERROR = 0u32;
133133pub const FALSE : BOOL = 0i32 ;
134134pub type FARPROC = Option < unsafe extern "system" fn ( ) -> isize > ;
135135#[ repr( C ) ]
136+ #[ derive( Clone , Copy ) ]
136137pub struct FILETIME {
137138 pub dwLowDateTime : u32 ,
138139 pub dwHighDateTime : u32 ,
139140}
140- impl Copy for FILETIME { }
141- impl Clone for FILETIME {
142- fn clone ( & self ) -> Self {
143- * self
144- }
145- }
146141pub const FILE_ATTRIBUTE_TEMPORARY : FILE_FLAGS_AND_ATTRIBUTES = 256u32 ;
147142pub type FILE_FLAGS_AND_ATTRIBUTES = u32 ;
148143#[ repr( C ) ]
144+ #[ derive( Clone , Copy ) ]
149145pub struct GUID {
150146 pub data1 : u32 ,
151147 pub data2 : u16 ,
152148 pub data3 : u16 ,
153149 pub data4 : [ u8 ; 8 ] ,
154150}
155- impl Copy for GUID { }
156- impl Clone for GUID {
157- fn clone ( & self ) -> Self {
158- * self
159- }
160- }
161151impl GUID {
162152 pub const fn from_u128 ( uuid : u128 ) -> Self {
163153 Self {
@@ -185,6 +175,7 @@ pub type REG_SAM_FLAGS = u32;
185175pub const REG_SZ : REG_VALUE_TYPE = 1u32 ;
186176pub type REG_VALUE_TYPE = u32 ;
187177#[ repr( C ) ]
178+ #[ derive( Clone , Copy ) ]
188179pub struct SAFEARRAY {
189180 pub cDims : u16 ,
190181 pub fFeatures : ADVANCED_FEATURE_FLAGS ,
@@ -193,23 +184,12 @@ pub struct SAFEARRAY {
193184 pub pvData : * mut core:: ffi:: c_void ,
194185 pub rgsabound : [ SAFEARRAYBOUND ; 1 ] ,
195186}
196- impl Copy for SAFEARRAY { }
197- impl Clone for SAFEARRAY {
198- fn clone ( & self ) -> Self {
199- * self
200- }
201- }
202187#[ repr( C ) ]
188+ #[ derive( Clone , Copy ) ]
203189pub struct SAFEARRAYBOUND {
204190 pub cElements : u32 ,
205191 pub lLbound : i32 ,
206192}
207- impl Copy for SAFEARRAYBOUND { }
208- impl Clone for SAFEARRAYBOUND {
209- fn clone ( & self ) -> Self {
210- * self
211- }
212- }
213193pub const SEMAPHORE_MODIFY_STATE : SYNCHRONIZATION_ACCESS_RIGHTS = 2u32 ;
214194pub type SYNCHRONIZATION_ACCESS_RIGHTS = u32 ;
215195pub const S_FALSE : HRESULT = 0x1_u32 as _ ;
0 commit comments