File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ mod _overlapped {
309309 let mut addr: SOCKADDR_IN = unsafe { core:: mem:: zeroed ( ) } ;
310310 addr. sin_family = AF_INET ;
311311
312- let host_wide: Vec < u16 > = host. as_str ( ) . encode_utf16 ( ) . chain ( [ 0 ] ) . collect ( ) ;
312+ let host_wide: Vec < u16 > = host. as_wtf8 ( ) . encode_wide ( ) . chain ( [ 0 ] ) . collect ( ) ;
313313 let mut addr_len = core:: mem:: size_of :: < SOCKADDR_IN > ( ) as i32 ;
314314
315315 let ret = unsafe {
@@ -348,7 +348,7 @@ mod _overlapped {
348348 let mut addr: SOCKADDR_IN6 = unsafe { core:: mem:: zeroed ( ) } ;
349349 addr. sin6_family = AF_INET6 ;
350350
351- let host_wide: Vec < u16 > = host. as_str ( ) . encode_utf16 ( ) . chain ( [ 0 ] ) . collect ( ) ;
351+ let host_wide: Vec < u16 > = host. as_wtf8 ( ) . encode_wide ( ) . chain ( [ 0 ] ) . collect ( ) ;
352352 let mut addr_len = core:: mem:: size_of :: < SOCKADDR_IN6 > ( ) as i32 ;
353353
354354 let ret = unsafe {
Original file line number Diff line number Diff line change @@ -66,10 +66,9 @@ pub(crate) mod typevar {
6666 // Special handling for certain module names
6767 if let Ok ( name_str) = module_name. str ( vm)
6868 && let Some ( name) = name_str. to_str ( )
69+ && ( name == "builtins" || name. starts_with ( '<' ) )
6970 {
70- if name == "builtins" || name. starts_with ( '<' ) {
71- return Ok ( ( ) ) ;
72- }
71+ return Ok ( ( ) ) ;
7372 }
7473 module_name
7574 } else {
You can’t perform that action at this time.
0 commit comments