summaryrefslogtreecommitdiffstats
path: root/bin/domain
diff options
context:
space:
mode:
Diffstat (limited to 'bin/domain')
-rw-r--r--bin/domain/imag-calendar/src/lib.rs6
-rw-r--r--bin/domain/imag-todo/src/lib.rs8
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/domain/imag-calendar/src/lib.rs b/bin/domain/imag-calendar/src/lib.rs
index ff479757..ae0c8fdb 100644
--- a/bin/domain/imag-calendar/src/lib.rs
+++ b/bin/domain/imag-calendar/src/lib.rs
@@ -168,7 +168,7 @@ fn import(rt: &Runtime) -> Result<()> {
.collect::<Result<Vec<_>>>()?
.into_iter()
.flatten()
- .and_then_ok(|fle| rt.report_touched(fle.get_location()).map_err(Error::from));
+ .and_then_ok(|fle| rt.report_touched(fle.get_location()));
if do_fail {
iter.collect()
@@ -256,7 +256,7 @@ fn list(rt: &Runtime) -> Result<()> {
})
.collect::<Result<Vec<_>>>()?;
- rt.report_touched(parsed_entry.get_entry().get_location()).map_err(Error::from)
+ rt.report_touched(parsed_entry.get_entry().get_location())
})
.collect()
}
@@ -303,7 +303,7 @@ fn show(rt: &Runtime) -> Result<()> {
})
.collect::<Result<Vec<_>>>()?;
- rt.report_touched(parsed_entry.get_entry().get_location()).map_err(Error::from)
+ rt.report_touched(parsed_entry.get_entry().get_location())
})
.collect()
}
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();