summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/import.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/domain/imag-todo/src/import.rs')
-rw-r--r--bin/domain/imag-todo/src/import.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/domain/imag-todo/src/import.rs b/bin/domain/imag-todo/src/import.rs
index 6194bcbd..ca812b71 100644
--- a/bin/domain/imag-todo/src/import.rs
+++ b/bin/domain/imag-todo/src/import.rs
@@ -89,12 +89,11 @@ fn import_taskwarrior(rt: &Runtime) -> Result<()> {
taskwarrior_import(stdin)?
.into_iter()
.map(|task| {
- let hash = task.uuid().clone();
let mut todo = store
.todo_builder()
.with_check_sanity(false) // data should be imported, even if it is not sane
.with_status(translate_status(task.status()))
- .with_uuid(Some(task.uuid().clone()))
+ .with_uuid(Some(*task.uuid()))
.with_due(task.due().map(Deref::deref).cloned())
.with_scheduled(task.scheduled().map(Deref::deref).cloned())
.with_hidden(task.wait().map(Deref::deref).cloned())
@@ -130,7 +129,7 @@ fn import_taskwarrior(rt: &Runtime) -> Result<()> {
}
let dependends = task.depends().cloned().unwrap_or_else(|| vec![]);
- Ok((hash, dependends))
+ Ok((*task.uuid(), dependends))
})
.collect::<Result<HashMap<Uuid, Vec<Uuid>>>>()?