summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-02-18 13:22:27 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-02-18 16:02:49 +0100
commitb5fe48b5644dfd83a55af51d7c8d8e9b799fdf74 (patch)
tree7f55c66f1a537cefcd10f3aee6e76c09be2c1c92
parentc562f352223fe5732424e5302a37c88698e3a1b4 (diff)
Remove serializing where result was unused
I'm not sure why this was still there, it seems that this was left out when deleting older code. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/domain/libimagtodo/src/taskstore.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/domain/libimagtodo/src/taskstore.rs b/lib/domain/libimagtodo/src/taskstore.rs
index 48b6e16e..aca7890f 100644
--- a/lib/domain/libimagtodo/src/taskstore.rs
+++ b/lib/domain/libimagtodo/src/taskstore.rs
@@ -128,7 +128,6 @@ impl<'a> TaskStore<'a> for Store {
}
fn delete_tasks_by_imports<R: BufRead>(&self, r: R) -> Result<()> {
- use serde_json::ser::to_string as serde_to_string;
use task_hookrs::status::TaskStatus;
for (counter, res_ttask) in import_tasks(r).into_iter().enumerate() {
@@ -139,8 +138,7 @@ impl<'a> TaskStore<'a> for Store {
// task before the change, and the second one after
// the change. The (maybe modified) second one is
// expected by taskwarrior.
- let val = serde_to_string(&ttask).context(err_msg("Import error"))?;
-
+ //
// Taskwarrior does not have the concept of deleted tasks, but only modified
// ones.
//