summaryrefslogtreecommitdiffstats
path: root/lib/entry/libimagentryview/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/entry/libimagentryview/src/error.rs')
-rw-r--r--lib/entry/libimagentryview/src/error.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/entry/libimagentryview/src/error.rs b/lib/entry/libimagentryview/src/error.rs
index be887549..5f45d7a0 100644
--- a/lib/entry/libimagentryview/src/error.rs
+++ b/lib/entry/libimagentryview/src/error.rs
@@ -46,3 +46,12 @@ impl From<::anyhow::Error> for Error {
}
}
+impl Into<::anyhow::Error> for Error {
+ fn into(self) -> ::anyhow::Error {
+ match self {
+ Error::Io(e) => ::anyhow::Error::from(e),
+ Error::Other(e) => e,
+ }
+ }
+}
+