diff options
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r-- | bin/domain/imag-todo/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs index 96ff913f..9af20181 100644 --- a/bin/domain/imag-todo/src/lib.rs +++ b/bin/domain/imag-todo/src/lib.rs @@ -222,7 +222,7 @@ fn create(rt: &Runtime) -> Result<()> { entry.edit_content(&rt)?; } - rt.report_touched(entry.get_location()).map_err(Error::from) + rt.report_touched(entry.get_location()) } fn mark(rt: &Runtime) -> Result<()> { @@ -233,7 +233,7 @@ fn mark(rt: &Runtime) -> Result<()> { .map(Ok) .into_get_iter(rt.store()) .map_inner_ok_or_else(|| err_msg("Did not find one entry")) - .and_then_ok(|e| rt.report_touched(e.get_location()).map_err(Error::from).map(|_| e)) + .and_then_ok(|e| rt.report_touched(e.get_location()).map(|_| e)) .and_then_ok(|mut e| e.set_status(status.clone())) .collect() } @@ -339,7 +339,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul } } - rt.report_touched(entry.get_location()).map_err(Error::from) + rt.report_touched(entry.get_location()) }) .collect() }; @@ -453,7 +453,7 @@ fn show(rt: &Runtime) -> Result<()> { .map(Ok) .into_get_iter(rt.store()) .map_inner_ok_or_else(|| err_msg("Did not find one entry")) - .and_then_ok(|e| rt.report_touched(e.get_location()).map_err(Error::from).map(|_| e)) + .and_then_ok(|e| rt.report_touched(e.get_location()).map(|_| e)) .collect::<Result<Vec<_>>>()? .into_iter(); |