File tree 1 file changed +3
-12
lines changed
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -833,20 +833,11 @@ fn symlink_noexist() {
833
833
fn read_link ( ) {
834
834
if cfg ! ( windows) {
835
835
// directory symlink
836
- assert_eq ! (
837
- check!( fs:: read_link( r"C:\Users\All Users" ) ) . to_str( ) . unwrap( ) ,
838
- r"C:\ProgramData"
839
- ) ;
836
+ assert_eq ! ( check!( fs:: read_link( r"C:\Users\All Users" ) ) , Path :: new( r"C:\ProgramData" ) ) ;
840
837
// junction
841
- assert_eq ! (
842
- check!( fs:: read_link( r"C:\Users\Default User" ) ) . to_str( ) . unwrap( ) ,
843
- r"C:\Users\Default"
844
- ) ;
838
+ assert_eq ! ( check!( fs:: read_link( r"C:\Users\Default User" ) ) , Path :: new( r"C:\Users\Default" ) ) ;
845
839
// junction with special permissions
846
- assert_eq ! (
847
- check!( fs:: read_link( r"C:\Documents and Settings\" ) ) . to_str( ) . unwrap( ) ,
848
- r"C:\Users"
849
- ) ;
840
+ assert_eq ! ( check!( fs:: read_link( r"C:\Documents and Settings\" ) ) , Path :: new( r"C:\Users" ) ) ;
850
841
}
851
842
let tmpdir = tmpdir ( ) ;
852
843
let link = tmpdir. join ( "link" ) ;
You can’t perform that action at this time.
0 commit comments