Skip to content

Commit 2085627

Browse files
dependabot[bot]djc
authored andcommitted
Update windows-bindgen requirement from 0.56 to 0.57
Updates the requirements on [windows-bindgen](https://github.com/microsoft/windows-rs) to permit the latest version. - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](microsoft/windows-rs@0.56.0...0.57.0) --- updated-dependencies: - dependency-name: windows-bindgen dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 865b0ad commit 2085627

File tree

2 files changed

+5
-25
lines changed

2 files changed

+5
-25
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ js-sys = { version = "0.3", optional = true } # contains FFI bindings for
5252
windows-targets = { version = "0.52", optional = true }
5353

5454
[target.'cfg(windows)'.dev-dependencies]
55-
windows-bindgen = { version = "0.56" } # The MSRV of its windows-metatada dependency is 1.70
55+
windows-bindgen = { version = "0.57" } # MSRV is 1.70
5656

5757
[target.'cfg(unix)'.dependencies]
5858
iana-time-zone = { version = "0.1.45", optional = true, features = ["fallback"] }

src/offset/local/win_bindings.rs

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTim
66
pub type BOOL = i32;
77
pub type BOOLEAN = u8;
88
#[repr(C)]
9+
#[derive(Clone, Copy)]
910
pub struct DYNAMIC_TIME_ZONE_INFORMATION {
1011
pub Bias: i32,
1112
pub StandardName: [u16; 32],
@@ -17,24 +18,14 @@ pub struct DYNAMIC_TIME_ZONE_INFORMATION {
1718
pub TimeZoneKeyName: [u16; 128],
1819
pub DynamicDaylightTimeDisabled: BOOLEAN,
1920
}
20-
impl Copy for DYNAMIC_TIME_ZONE_INFORMATION {}
21-
impl Clone for DYNAMIC_TIME_ZONE_INFORMATION {
22-
fn clone(&self) -> Self {
23-
*self
24-
}
25-
}
2621
#[repr(C)]
22+
#[derive(Clone, Copy)]
2723
pub struct FILETIME {
2824
pub dwLowDateTime: u32,
2925
pub dwHighDateTime: u32,
3026
}
31-
impl Copy for FILETIME {}
32-
impl Clone for FILETIME {
33-
fn clone(&self) -> Self {
34-
*self
35-
}
36-
}
3727
#[repr(C)]
28+
#[derive(Clone, Copy)]
3829
pub struct SYSTEMTIME {
3930
pub wYear: u16,
4031
pub wMonth: u16,
@@ -45,13 +36,8 @@ pub struct SYSTEMTIME {
4536
pub wSecond: u16,
4637
pub wMilliseconds: u16,
4738
}
48-
impl Copy for SYSTEMTIME {}
49-
impl Clone for SYSTEMTIME {
50-
fn clone(&self) -> Self {
51-
*self
52-
}
53-
}
5439
#[repr(C)]
40+
#[derive(Clone, Copy)]
5541
pub struct TIME_ZONE_INFORMATION {
5642
pub Bias: i32,
5743
pub StandardName: [u16; 32],
@@ -61,9 +47,3 @@ pub struct TIME_ZONE_INFORMATION {
6147
pub DaylightDate: SYSTEMTIME,
6248
pub DaylightBias: i32,
6349
}
64-
impl Copy for TIME_ZONE_INFORMATION {}
65-
impl Clone for TIME_ZONE_INFORMATION {
66-
fn clone(&self) -> Self {
67-
*self
68-
}
69-
}

0 commit comments

Comments
 (0)