summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-22 21:00:36 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 21:00:36 +0100
commit1809f4d4eff865a0a8237e8fb202d7a9c1e69b1a (patch)
tree1f2f6b26bd37ee639603ac5e3412d05a88b412aa /bin/domain/imag-todo/src/lib.rs
parent3e016d901f069eb2c7a772bf71f9920533de6e10 (diff)
parent0464bfba53255814aadc35d9927c8d0fff2eb00d (diff)
Merge branch 'report-ids-ignore-broken-pipe' into master
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r--bin/domain/imag-todo/src/lib.rs8
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();