diff options
Diffstat (limited to 'lib/entry/libimagentryannotation/src/error.rs')
-rw-r--r-- | lib/entry/libimagentryannotation/src/error.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/entry/libimagentryannotation/src/error.rs b/lib/entry/libimagentryannotation/src/error.rs index 6355048e..7543b85a 100644 --- a/lib/entry/libimagentryannotation/src/error.rs +++ b/lib/entry/libimagentryannotation/src/error.rs @@ -17,6 +17,10 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // +use std::error::Error; + +use libimagerror::into::IntoError; + error_chain! { types { AnnotationError, AnnotationErrorKind, ResultExt, Result; @@ -56,10 +60,6 @@ error_chain! { } } -pub use self::error::AnnotationError; -pub use self::error::AnnotationErrorKind; -pub use self::error::MapErrInto; - impl IntoError for AnnotationErrorKind { type Target = AnnotationError; @@ -67,7 +67,7 @@ impl IntoError for AnnotationErrorKind { AnnotationError::from_kind(self) } - fn into_error_with_cause(self, cause: Box<Error>) -> Self::Target { + fn into_error_with_cause(self, _: Box<Error>) -> Self::Target { AnnotationError::from_kind(self) } } |