File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
library/std/src/sys/pal/windows Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 66#[ cfg( test) ]
77mod tests;
88
9+ use super :: os:: current_exe;
910use crate :: ffi:: OsString ;
1011use crate :: fmt;
1112use crate :: io;
@@ -14,7 +15,6 @@ use crate::os::windows::prelude::*;
1415use crate :: path:: { Path , PathBuf } ;
1516use crate :: sys:: path:: get_long_path;
1617use crate :: sys:: process:: ensure_no_nuls;
17- use crate :: sys:: windows:: os:: current_exe;
1818use crate :: sys:: { c, to_u16s} ;
1919use crate :: sys_common:: wstr:: WStrUnits ;
2020use crate :: vec;
@@ -318,8 +318,8 @@ pub(crate) fn to_user_path(path: &Path) -> io::Result<Vec<u16>> {
318318 from_wide_to_user_path ( to_u16s ( path) ?)
319319}
320320pub ( crate ) fn from_wide_to_user_path ( mut path : Vec < u16 > ) -> io:: Result < Vec < u16 > > {
321+ use super :: fill_utf16_buf;
321322 use crate :: ptr;
322- use crate :: sys:: windows:: fill_utf16_buf;
323323
324324 // UTF-16 encoded code points, used in parsing and building UTF-16 paths.
325325 // All of these are in the ASCII range so they can be cast directly to `u16`.
Original file line number Diff line number Diff line change 1+ use super :: * ;
12use crate :: ffi:: OsString ;
2- use crate :: sys:: windows:: args:: * ;
33
44fn chk ( string : & str , parts : & [ & str ] ) {
55 let mut wide: Vec < u16 > = OsString :: from ( string) . encode_wide ( ) . collect ( ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl Condvar {
2727 let r = c:: SleepConditionVariableSRW (
2828 self . inner . get ( ) ,
2929 mutex:: raw ( mutex) ,
30- crate :: sys:: windows:: dur2timeout ( dur) ,
30+ crate :: sys:: pal :: windows:: dur2timeout ( dur) ,
3131 0 ,
3232 ) ;
3333 if r == 0 {
Original file line number Diff line number Diff line change 11#![ unstable( issue = "none" , feature = "windows_stdio" ) ]
22
3+ use super :: api;
34use crate :: cmp;
45use crate :: io;
56use crate :: mem:: MaybeUninit ;
@@ -9,7 +10,6 @@ use crate::str;
910use crate :: sys:: c;
1011use crate :: sys:: cvt;
1112use crate :: sys:: handle:: Handle ;
12- use crate :: sys:: windows:: api;
1313use core:: str:: utf8_char_width;
1414
1515#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments