Skip to content

Commit

Permalink
Join map operators
Browse files Browse the repository at this point in the history
Signed-off-by: wcampbell <[email protected]>
  • Loading branch information
wcampbell0x2a committed Oct 13, 2020
1 parent abbdec3 commit a93f58f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/fs/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
let link = tmpdir.join("some_hopefully_unique_link_name");

match symlink_file(r"nonexisting_target", link) {
Ok(_) => true,
// ERROR_PRIVILEGE_NOT_HELD = 1314
Err(ref err) if err.raw_os_error() == Some(1314) => false,
Err(_) => true,
Ok(_) | Err(_) => true,
}
}

Expand Down

0 comments on commit a93f58f

Please sign in to comment.