Merge pull request #928 from seanyoung/io-error

Expose io_error in SyscallError
pull/930/head
Alessandro Decina 6 months ago committed by GitHub
commit d0e9b95aa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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<'_> {

Loading…
Cancel
Save