File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Original file line number Diff line number Diff line change @@ -160,9 +160,7 @@ mod decl {
160
160
fn get_tz_info ( ) -> Time :: TIME_ZONE_INFORMATION {
161
161
let mut info = Time :: TIME_ZONE_INFORMATION :: default ( ) ;
162
162
let info_ptr = & mut info as * mut Time :: TIME_ZONE_INFORMATION ;
163
- let _ = unsafe {
164
- Time :: GetTimeZoneInformation ( info_ptr)
165
- } ;
163
+ let _ = unsafe { Time :: GetTimeZoneInformation ( info_ptr) } ;
166
164
info
167
165
}
168
166
@@ -187,7 +185,6 @@ mod decl {
187
185
( info. Bias + info. StandardBias ) * 60
188
186
}
189
187
190
-
191
188
#[ cfg( not( target_os = "freebsd" ) ) ]
192
189
#[ cfg( not( target_env = "msvc" ) ) ]
193
190
#[ cfg( not( target_arch = "wasm32" ) ) ]
@@ -223,8 +220,12 @@ mod decl {
223
220
fn tzname ( vm : & VirtualMachine ) -> crate :: builtins:: PyTupleRef {
224
221
use crate :: builtins:: tuple:: IntoPyTuple ;
225
222
let info = get_tz_info ( ) ;
226
- let standard = widestring:: decode_utf16_lossy ( info. StandardName ) . filter ( |& c| c != '\0' ) . collect :: < String > ( ) ;
227
- let daylight = widestring:: decode_utf16_lossy ( info. DaylightName ) . filter ( |& c| c != '\0' ) . collect :: < String > ( ) ;
223
+ let standard = widestring:: decode_utf16_lossy ( info. StandardName )
224
+ . filter ( |& c| c != '\0' )
225
+ . collect :: < String > ( ) ;
226
+ let daylight = widestring:: decode_utf16_lossy ( info. DaylightName )
227
+ . filter ( |& c| c != '\0' )
228
+ . collect :: < String > ( ) ;
228
229
let tz_name = ( & * standard, & * daylight) ;
229
230
tz_name. into_pytuple ( vm)
230
231
}
You can’t perform that action at this time.
0 commit comments