File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,9 +160,7 @@ mod decl {
160160 fn get_tz_info ( ) -> Time :: TIME_ZONE_INFORMATION {
161161 let mut info = Time :: TIME_ZONE_INFORMATION :: default ( ) ;
162162 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) } ;
166164 info
167165 }
168166
@@ -187,7 +185,6 @@ mod decl {
187185 ( info. Bias + info. StandardBias ) * 60
188186 }
189187
190-
191188 #[ cfg( not( target_os = "freebsd" ) ) ]
192189 #[ cfg( not( target_env = "msvc" ) ) ]
193190 #[ cfg( not( target_arch = "wasm32" ) ) ]
@@ -223,8 +220,12 @@ mod decl {
223220 fn tzname ( vm : & VirtualMachine ) -> crate :: builtins:: PyTupleRef {
224221 use crate :: builtins:: tuple:: IntoPyTuple ;
225222 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 > ( ) ;
228229 let tz_name = ( & * standard, & * daylight) ;
229230 tz_name. into_pytuple ( vm)
230231 }
You can’t perform that action at this time.
0 commit comments