diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-03-09 11:42:45 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-03-09 18:09:50 +0100 |
commit | 391a4b92c977cd64dfd131f3e29b0bc8d756d064 (patch) | |
tree | b5b96ff935853cef9ee22e01890c248a791e724e /openpgp/src/lib.rs | |
parent | 58d662c6d37dd1b0dccd4d0ce30290b8ede408e9 (diff) |
Switch from failure to anyhow.
- Use the anyhow crate instead of failure to implement the dynamic
side of our error handling. anyhow::Error derefs to dyn
std::error::Error, allowing better interoperability with other
stdlib-based error handling libraries.
- Fixes #444.
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r-- | openpgp/src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index 792d91db..ca5de2cd 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -46,9 +46,6 @@ extern crate lalrpop_util; -#[macro_use] -extern crate failure; - extern crate buffered_reader; extern crate memsec; @@ -186,7 +183,7 @@ fn frozen_time() -> std::time::SystemTime { } /// Crate result specialization. -pub type Result<T> = ::std::result::Result<T, failure::Error>; +pub type Result<T> = ::std::result::Result<T, anyhow::Error>; #[derive(thiserror::Error, Debug, Clone)] /// Errors returned by this module. |