From e6244d7e9eb77acd896bb7726f820d5c6da330a2 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 30 Apr 2018 19:24:05 +0200 Subject: [PATCH] Refactor imag-todo to fit new store iterator interface --- bin/domain/imag-todo/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/domain/imag-todo/src/main.rs b/bin/domain/imag-todo/src/main.rs index cf1d4ccb..622bcce2 100644 --- a/bin/domain/imag-todo/src/main.rs +++ b/bin/domain/imag-todo/src/main.rs @@ -50,6 +50,7 @@ use libimagrt::runtime::Runtime; use libimagrt::setup::generate_runtime_setup; use libimagtodo::taskstore::TaskStore; use libimagerror::trace::{MapErrTrace, trace_error}; +use libimagerror::iter::TraceIterator; use libimagerror::exit::ExitUnwrap; use libimagerror::io::ToExitCode; @@ -124,7 +125,7 @@ fn list(rt: &Runtime) { let res = rt.store().all_tasks() // get all tasks .map(|iter| { // and if this succeeded // filter out the ones were we can read the uuid - let uuids : Vec<_> = iter.filter_map(|storeid| { + let uuids : Vec<_> = iter.trace_unwrap_exit(1).filter_map(|storeid| { match rt.store().retrieve(storeid) { Ok(fle) => { match fle.get_header().read_string("todo.uuid") {