@@ -6,6 +6,7 @@ windows_targets::link!("kernel32.dll" "system" fn TzSpecificLocalTimeToSystemTim
6
6
pub type BOOL = i32 ;
7
7
pub type BOOLEAN = u8 ;
8
8
#[ repr( C ) ]
9
+ #[ derive( Clone , Copy ) ]
9
10
pub struct DYNAMIC_TIME_ZONE_INFORMATION {
10
11
pub Bias : i32 ,
11
12
pub StandardName : [ u16 ; 32 ] ,
@@ -17,24 +18,14 @@ pub struct DYNAMIC_TIME_ZONE_INFORMATION {
17
18
pub TimeZoneKeyName : [ u16 ; 128 ] ,
18
19
pub DynamicDaylightTimeDisabled : BOOLEAN ,
19
20
}
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
- }
26
21
#[ repr( C ) ]
22
+ #[ derive( Clone , Copy ) ]
27
23
pub struct FILETIME {
28
24
pub dwLowDateTime : u32 ,
29
25
pub dwHighDateTime : u32 ,
30
26
}
31
- impl Copy for FILETIME { }
32
- impl Clone for FILETIME {
33
- fn clone ( & self ) -> Self {
34
- * self
35
- }
36
- }
37
27
#[ repr( C ) ]
28
+ #[ derive( Clone , Copy ) ]
38
29
pub struct SYSTEMTIME {
39
30
pub wYear : u16 ,
40
31
pub wMonth : u16 ,
@@ -45,13 +36,8 @@ pub struct SYSTEMTIME {
45
36
pub wSecond : u16 ,
46
37
pub wMilliseconds : u16 ,
47
38
}
48
- impl Copy for SYSTEMTIME { }
49
- impl Clone for SYSTEMTIME {
50
- fn clone ( & self ) -> Self {
51
- * self
52
- }
53
- }
54
39
#[ repr( C ) ]
40
+ #[ derive( Clone , Copy ) ]
55
41
pub struct TIME_ZONE_INFORMATION {
56
42
pub Bias : i32 ,
57
43
pub StandardName : [ u16 ; 32 ] ,
@@ -61,9 +47,3 @@ pub struct TIME_ZONE_INFORMATION {
61
47
pub DaylightDate : SYSTEMTIME ,
62
48
pub DaylightBias : i32 ,
63
49
}
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