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 73452b3 + f65bfb6 commit f76c608Copy full SHA for f76c608
rust-version
@@ -1 +1 @@
1
-279f1c9d8c26a8d227ae8ab806d262bb784b251b
+9e75dddf609c0201d03f9792e850f95d6a283d11
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