[No-auto] lib/domain/todo: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:23:47 +02:00 committed by Matthias Beyer
parent 4301e80cf2
commit 2e7706af99

View file

@ -59,7 +59,7 @@ impl<'a> TaskStore<'a> for Store {
.context(err_msg("Error importing")) .context(err_msg("Error importing"))
.map_err(Error::from) .map_err(Error::from)
.and_then(|t| { .and_then(|t| {
let uuid = t.uuid().clone(); let uuid = *t.uuid();
self.new_from_twtask(t).map(|t| (t, line, 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()) import_task(s.as_str())
.context(err_msg("Import error")) .context(err_msg("Import error"))
.map_err(Error::from) .map_err(Error::from)
.map(|t| t.uuid().clone()) .map(|t| *t.uuid())
.and_then(|uuid| self.get_task_from_uuid(uuid)) .and_then(|uuid| self.get_task_from_uuid(uuid))
.and_then(|o| match o { .and_then(|o| match o {
None => Ok(Err(s)), None => Ok(Err(s)),