diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-03-01 16:54:01 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-03-01 16:56:49 +0100 |
commit | a2b73242253fd714a6d3f129e86ca63a8d13f2fb (patch) | |
tree | cf50d35f00971be122f2127457c8556eba4d4b73 | |
parent | 70918970bb7ef7436cc1386a88e9e41a07cc1b44 (diff) |
core: Remove unknown error.
-rw-r--r-- | core/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs index 470916a5..0fb66062 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -293,10 +293,10 @@ pub enum Error { /// The network policy was violated by the given action. #[fail(display = "Unmet network policy requirement: {}", _0)] NetworkPolicyViolation(NetworkPolicy), - #[fail(display = "IO error: {}", error)] - IoError { error: io::Error }, - #[fail(display = "An unknown error has occurred.")] - UnknownError, + + /// An `io::Error` occurred. + #[fail(display = "{}", _0)] + IoError(#[cause] io::Error), } /* Network policy. */ |