Skip to content

Commit 76c377a

Browse files
github-actions[bot]github-actions
andauthored
Regenerate windows sys bindings (#1096)
Co-authored-by: github-actions <[email protected]>
1 parent 96689df commit 76c377a

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

src/windows/windows_sys.rs

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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;
133133
pub const FALSE: BOOL = 0i32;
134134
pub type FARPROC = Option<unsafe extern "system" fn() -> isize>;
135135
#[repr(C)]
136+
#[derive(Clone, Copy)]
136137
pub 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-
}
146141
pub const FILE_ATTRIBUTE_TEMPORARY: FILE_FLAGS_AND_ATTRIBUTES = 256u32;
147142
pub type FILE_FLAGS_AND_ATTRIBUTES = u32;
148143
#[repr(C)]
144+
#[derive(Clone, Copy)]
149145
pub 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-
}
161151
impl GUID {
162152
pub const fn from_u128(uuid: u128) -> Self {
163153
Self {
@@ -185,6 +175,7 @@ pub type REG_SAM_FLAGS = u32;
185175
pub const REG_SZ: REG_VALUE_TYPE = 1u32;
186176
pub type REG_VALUE_TYPE = u32;
187177
#[repr(C)]
178+
#[derive(Clone, Copy)]
188179
pub 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)]
203189
pub 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-
}
213193
pub const SEMAPHORE_MODIFY_STATE: SYNCHRONIZATION_ACCESS_RIGHTS = 2u32;
214194
pub type SYNCHRONIZATION_ACCESS_RIGHTS = u32;
215195
pub const S_FALSE: HRESULT = 0x1_u32 as _;

0 commit comments

Comments
 (0)