File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
//! Support for functional tests.
2
2
3
- use std:: sync:: Mutex ;
3
+ use std:: { io , sync:: Mutex } ;
4
4
5
5
#[ cfg( windows) ]
6
6
use winreg:: {
@@ -9,14 +9,14 @@ use winreg::{
9
9
} ;
10
10
11
11
#[ cfg( windows) ]
12
- pub fn get_path ( ) -> std :: io:: Result < Option < RegValue > > {
12
+ pub fn get_path ( ) -> io:: Result < Option < RegValue > > {
13
13
let root = RegKey :: predef ( HKEY_CURRENT_USER ) ;
14
14
let environment = root
15
15
. open_subkey_with_flags ( "Environment" , KEY_READ | KEY_WRITE )
16
16
. unwrap ( ) ;
17
17
match environment. get_raw_value ( "PATH" ) {
18
18
Ok ( val) => Ok ( Some ( val) ) ,
19
- Err ( ref e) if e. kind ( ) == std :: io:: ErrorKind :: NotFound => Ok ( None ) ,
19
+ Err ( ref e) if e. kind ( ) == io:: ErrorKind :: NotFound => Ok ( None ) ,
20
20
Err ( e) => Err ( e) ,
21
21
}
22
22
}
@@ -49,7 +49,7 @@ pub fn with_saved_path(f: &mut dyn FnMut()) {
49
49
}
50
50
51
51
#[ cfg( unix) ]
52
- pub fn get_path ( ) -> std :: io:: Result < Option < ( ) > > {
52
+ pub fn get_path ( ) -> io:: Result < Option < ( ) > > {
53
53
Ok ( None )
54
54
}
55
55
You can’t perform that action at this time.
0 commit comments