summaryrefslogtreecommitdiffstats
path: root/lib/entry/libimagentrycategory/src/store.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/entry/libimagentrycategory/src/store.rs')
-rw-r--r--lib/entry/libimagentrycategory/src/store.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/entry/libimagentrycategory/src/store.rs b/lib/entry/libimagentrycategory/src/store.rs
index e05e8230..88746bb1 100644
--- a/lib/entry/libimagentrycategory/src/store.rs
+++ b/lib/entry/libimagentrycategory/src/store.rs
@@ -109,7 +109,7 @@ impl CategoryStore for Store {
/// Get all category names
fn all_category_names(&self) -> Result<CategoryNameIter> {
trace!("Getting all category names");
- Ok(CategoryNameIter::new(self, self.entries()?.without_store()))
+ Ok(CategoryNameIter::new(self, self.entries()?.into_storeid_iter()))
}
/// Get a category by its name
@@ -130,16 +130,13 @@ impl CategoryStore for Store {
mod tests {
extern crate env_logger;
use std::path::PathBuf;
- use std::sync::Arc;
use super::*;
use libimagstore::store::Store;
pub fn get_store() -> Store {
- use libimagstore::store::InMemoryFileAbstraction;
- let backend = Arc::new(InMemoryFileAbstraction::default());
- Store::new_with_backend(PathBuf::from("/"), &None, backend).unwrap()
+ Store::new_inmemory(PathBuf::from("/"), &None).unwrap()
}
#[test]
@@ -216,7 +213,6 @@ fn mk_category_storeid(base: PathBuf, s: &str) -> Result<StoreId> {
use libimagstore::storeid::IntoStoreId;
::module_path::ModuleEntryPath::new(s)
.into_storeid()
- .map(|id| id.with_base(base))
.context(err_msg("Store id handling error"))
.map_err(Error::from)
}