diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-08-19 12:52:41 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-08-26 12:59:55 +0200 |
commit | e54c8a135d141fd6bfa84fa9b0aa45d5aeb22c34 (patch) | |
tree | c8663e37131225876045de300becf4e75a48046c /ffi | |
parent | a69291515c237a55d6c1e8a01341351ee65a3847 (diff) |
ipc: Remove unused error type.
Diffstat (limited to 'ffi')
-rw-r--r-- | ffi/src/error.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ffi/src/error.rs b/ffi/src/error.rs index b00984a1..dc4ab474 100644 --- a/ffi/src/error.rs +++ b/ffi/src/error.rs @@ -3,7 +3,6 @@ use std::io; use sequoia_openpgp as openpgp; -use sequoia_ipc::core as core; use sequoia_net as net; pub use crate::openpgp::error::Status; @@ -15,13 +14,6 @@ trait FromSequoiaError<'a> { impl<'a> FromSequoiaError<'a> for Status { fn from_sequoia_error(e: &'a anyhow::Error) -> Self { - if let Some(e) = e.downcast_ref::<core::Error>() { - return match e { - &core::Error::IoError(_) => - Status::IoError, - } - } - if let Some(e) = e.downcast_ref::<net::Error>() { return match e { net::Error::PolicyViolation(_) => |