Skip to content

Commit a93f58f

Browse files
committed
Join map operators
Signed-off-by: wcampbell <[email protected]>
1 parent abbdec3 commit a93f58f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/std/src/fs/tests.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
7373
let link = tmpdir.join("some_hopefully_unique_link_name");
7474

7575
match symlink_file(r"nonexisting_target", link) {
76-
Ok(_) => true,
7776
// ERROR_PRIVILEGE_NOT_HELD = 1314
7877
Err(ref err) if err.raw_os_error() == Some(1314) => false,
79-
Err(_) => true,
78+
Ok(_) | Err(_) => true,
8079
}
8180
}
8281

0 commit comments

Comments
 (0)