File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -927,7 +927,7 @@ mod tests {
927
927
fn split_paths_windows ( ) {
928
928
fn check_parse ( unparsed : & str , parsed : & [ & str ] ) -> bool {
929
929
split_paths ( unparsed) . collect :: < Vec < _ > > ( ) ==
930
- parsed. iter ( ) . map ( |s| Path :: new ( * s) ) . collect :: < Vec < _ > > ( )
930
+ parsed. iter ( ) . map ( |s| PathBuf :: new ( * s) ) . collect :: < Vec < _ > > ( )
931
931
}
932
932
933
933
assert ! ( check_parse( "" , & mut [ "" ] ) ) ;
Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ fn main() {
37
37
assert ! ( home_dir( ) . is_some( ) ) ;
38
38
39
39
set_var ( "HOME" , "/home/MountainView" ) ;
40
- assert ! ( home_dir( ) == Some ( Path :: new( "/home/MountainView" ) ) ) ;
40
+ assert ! ( home_dir( ) == Some ( PathBuf :: new( "/home/MountainView" ) ) ) ;
41
41
42
42
remove_var ( "HOME" ) ;
43
43
44
44
set_var ( "USERPROFILE" , "/home/MountainView" ) ;
45
- assert ! ( home_dir( ) == Some ( Path :: new( "/home/MountainView" ) ) ) ;
45
+ assert ! ( home_dir( ) == Some ( PathBuf :: new( "/home/MountainView" ) ) ) ;
46
46
47
47
set_var ( "HOME" , "/home/MountainView" ) ;
48
48
set_var ( "USERPROFILE" , "/home/PaloAlto" ) ;
49
- assert ! ( home_dir( ) == Some ( Path :: new( "/home/MountainView" ) ) ) ;
49
+ assert ! ( home_dir( ) == Some ( PathBuf :: new( "/home/MountainView" ) ) ) ;
50
50
}
You can’t perform that action at this time.
0 commit comments