소스 검색

Merge pull request #928 from seanyoung/io-error

Expose io_error in SyscallError
Alessandro Decina 11 달 전
부모
커밋
d0e9b95
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      aya/src/sys/mod.rs

+ 2 - 2
aya/src/sys/mod.rs

@@ -48,10 +48,10 @@ pub(crate) enum Syscall<'a> {
 #[error("`{call}` failed")]
 pub struct SyscallError {
     /// The name of the syscall which failed.
-    pub(crate) call: &'static str,
+    pub call: &'static str,
     /// The [`io::Error`] returned by the syscall.
     #[source]
-    pub(crate) io_error: io::Error,
+    pub io_error: io::Error,
 }
 
 impl std::fmt::Debug for Syscall<'_> {