diff --git a/libimagtodo/src/task.rs b/libimagtodo/src/task.rs index 3bf897d8..db757735 100644 --- a/libimagtodo/src/task.rs +++ b/libimagtodo/src/task.rs @@ -29,12 +29,16 @@ impl<'a> Task<'a> { .map_err(|e| TodoError::new(TodoErrorKind::StoreError, Some(Box::new(e)))) } - pub fn all(store: &Store) -> Result { + pub fn all_as_ids(store: &Store) -> Result { store.retrieve_for_module("todo/taskwarrior") - .map(|iter| TaskIterator::new(store, iter)) .map_err(|e| TodoError::new(TodoErrorKind::StoreError, Some(Box::new(e)))) } + pub fn all(store: &Store) -> Result { + Task::all_as_ids(store) + .map(|iter| TaskIterator::new(store, iter)) + } + } impl<'a> Deref for Task<'a> {