Do not use Store::retrieve_for_module() anymore here

This commit is contained in:
Matthias Beyer 2018-04-22 14:44:37 +02:00
parent 22fb26dc12
commit 190da895f9

View file

@ -31,9 +31,7 @@ pub trait AnnotationFetcher<'a> {
impl<'a> AnnotationFetcher<'a> for Store {
fn all_annotations(&'a self) -> Result<AnnotationIter<'a>> {
self.retrieve_for_module("annotations")
.map(|iter| AnnotationIter::new(iter, self))
.map_err(Into::into)
Ok(AnnotationIter::new(self.entries()?.without_store(), self))
}
}