summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-23 20:22:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 19:02:21 +0100
commit0464bfba53255814aadc35d9927c8d0fff2eb00d (patch)
tree1f2f6b26bd37ee639603ac5e3412d05a88b412aa /bin/domain/imag-todo/src/lib.rs
parent84bb05035b51b05734eef44657cffd1fdb2950db (diff)
downloadimag-0464bfba53255814aadc35d9927c8d0fff2eb00d.tar.gz
imag-0464bfba53255814aadc35d9927c8d0fff2eb00d.tar.xz
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();