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.
2 parents 231189d + 0b98ef9 commit f65bfb6Copy full SHA for f65bfb6
tests/pass-dep/shims/libc-fs-with-isolation.rs
@@ -22,7 +22,8 @@ fn main() {
22
}
23
24
// test `stat`
25
- assert_eq!(fs::metadata("foo.txt").unwrap_err().kind(), ErrorKind::PermissionDenied);
+ let err = fs::metadata("foo.txt").unwrap_err();
26
+ assert_eq!(err.kind(), ErrorKind::PermissionDenied);
27
// check that it is the right kind of `PermissionDenied`
- assert_eq!(Error::last_os_error().raw_os_error(), Some(libc::EACCES));
28
+ assert_eq!(err.raw_os_error(), Some(libc::EACCES));
29
0 commit comments