We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abbdec3 commit a93f58fCopy full SHA for a93f58f
library/std/src/fs/tests.rs
@@ -73,10 +73,9 @@ pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
73
let link = tmpdir.join("some_hopefully_unique_link_name");
74
75
match symlink_file(r"nonexisting_target", link) {
76
- Ok(_) => true,
77
// ERROR_PRIVILEGE_NOT_HELD = 1314
78
Err(ref err) if err.raw_os_error() == Some(1314) => false,
79
- Err(_) => true,
+ Ok(_) | Err(_) => true,
80
}
81
82
0 commit comments