summaryrefslogtreecommitdiffstats
path: root/lib/entry/libimagentryannotation/src/annotation_fetcher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/entry/libimagentryannotation/src/annotation_fetcher.rs')
-rw-r--r--lib/entry/libimagentryannotation/src/annotation_fetcher.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/entry/libimagentryannotation/src/annotation_fetcher.rs b/lib/entry/libimagentryannotation/src/annotation_fetcher.rs
index c49ce865..27f2f4b8 100644
--- a/lib/entry/libimagentryannotation/src/annotation_fetcher.rs
+++ b/lib/entry/libimagentryannotation/src/annotation_fetcher.rs
@@ -70,12 +70,12 @@ pub mod iter {
use toml_query::read::TomlValueReadExt;
- use libimagerror::into::IntoError;
use libimagnotes::note::Note;
use libimagnotes::note::NoteIterator;
use result::Result;
use error::AnnotationErrorKind as AEK;
+ use error::AnnotationError as AE;
use error::ResultExt;
#[derive(Debug)]
@@ -99,7 +99,7 @@ pub mod iter {
match note.get_header().read("annotation.is_annotation") {
Ok(None) => continue, // not an annotation
Ok(Some(&Value::Boolean(true))) => return Some(Ok(note)),
- Ok(Some(_)) => return Some(Err(AEK::HeaderTypeError.into_error())),
+ Ok(Some(_)) => return Some(Err(AE::from_kind(AEK::HeaderTypeError))),
Err(e) => return Some(Err(e).chain_err(|| AEK::HeaderReadError)),
}
},