File tree 4 files changed +5
-5
lines changed
library/std/src/sys/pal/windows
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
#[ cfg( test) ]
7
7
mod tests;
8
8
9
+ use super :: os:: current_exe;
9
10
use crate :: ffi:: OsString ;
10
11
use crate :: fmt;
11
12
use crate :: io;
@@ -14,7 +15,6 @@ use crate::os::windows::prelude::*;
14
15
use crate :: path:: { Path , PathBuf } ;
15
16
use crate :: sys:: path:: get_long_path;
16
17
use crate :: sys:: process:: ensure_no_nuls;
17
- use crate :: sys:: windows:: os:: current_exe;
18
18
use crate :: sys:: { c, to_u16s} ;
19
19
use crate :: sys_common:: wstr:: WStrUnits ;
20
20
use crate :: vec;
@@ -318,8 +318,8 @@ pub(crate) fn to_user_path(path: &Path) -> io::Result<Vec<u16>> {
318
318
from_wide_to_user_path ( to_u16s ( path) ?)
319
319
}
320
320
pub ( crate ) fn from_wide_to_user_path ( mut path : Vec < u16 > ) -> io:: Result < Vec < u16 > > {
321
+ use super :: fill_utf16_buf;
321
322
use crate :: ptr;
322
- use crate :: sys:: windows:: fill_utf16_buf;
323
323
324
324
// UTF-16 encoded code points, used in parsing and building UTF-16 paths.
325
325
// 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 :: * ;
1
2
use crate :: ffi:: OsString ;
2
- use crate :: sys:: windows:: args:: * ;
3
3
4
4
fn chk ( string : & str , parts : & [ & str ] ) {
5
5
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 {
27
27
let r = c:: SleepConditionVariableSRW (
28
28
self . inner . get ( ) ,
29
29
mutex:: raw ( mutex) ,
30
- crate :: sys:: windows:: dur2timeout ( dur) ,
30
+ crate :: sys:: pal :: windows:: dur2timeout ( dur) ,
31
31
0 ,
32
32
) ;
33
33
if r == 0 {
Original file line number Diff line number Diff line change 1
1
#![ unstable( issue = "none" , feature = "windows_stdio" ) ]
2
2
3
+ use super :: api;
3
4
use crate :: cmp;
4
5
use crate :: io;
5
6
use crate :: mem:: MaybeUninit ;
@@ -9,7 +10,6 @@ use crate::str;
9
10
use crate :: sys:: c;
10
11
use crate :: sys:: cvt;
11
12
use crate :: sys:: handle:: Handle ;
12
- use crate :: sys:: windows:: api;
13
13
use core:: str:: utf8_char_width;
14
14
15
15
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments