summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:23:47 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:41 +0200
commit2e7706af99953d51f11382e9089af837728c8220 (patch)
tree2d1708cc7528e7f9519d3eac014cfc735c3d54c4
parent4301e80cf25fa857aa36871604500c9d3936ab76 (diff)
[No-auto] lib/domain/todo: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/domain/libimagtodo/src/taskstore.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/domain/libimagtodo/src/taskstore.rs b/lib/domain/libimagtodo/src/taskstore.rs
index 3d2c5752..fbddecf6 100644
--- a/lib/domain/libimagtodo/src/taskstore.rs
+++ b/lib/domain/libimagtodo/src/taskstore.rs
@@ -59,7 +59,7 @@ impl<'a> TaskStore<'a> for Store {
.context(err_msg("Error importing"))
.map_err(Error::from)
.and_then(|t| {
- let uuid = t.uuid().clone();
+ let uuid = *t.uuid();
self.new_from_twtask(t).map(|t| (t, line, uuid))
})
}
@@ -87,7 +87,7 @@ impl<'a> TaskStore<'a> for Store {
import_task(s.as_str())
.context(err_msg("Import error"))
.map_err(Error::from)
- .map(|t| t.uuid().clone())
+ .map(|t| *t.uuid())
.and_then(|uuid| self.get_task_from_uuid(uuid))
.and_then(|o| match o {
None => Ok(Err(s)),