summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-12-23 14:43:47 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-23 15:43:48 +0100
commit13561d6987587bfe5a729dda8f473dde175bb644 (patch)
tree8b6544696e3f268ff47edebd08ed04a3bd5c29e8 /bin/domain/imag-todo/src/lib.rs
parent1b96686e8b409e8ca9eebe10189bf588cebb88d2 (diff)
downloadimag-13561d6987587bfe5a729dda8f473dde175bb644.tar.gz
imag-13561d6987587bfe5a729dda8f473dde175bb644.tar.xz
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r--bin/domain/imag-todo/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs
index 66505e1d..ecad4c5c 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -418,9 +418,9 @@ fn show(rt: &Runtime) -> Result<()> {
let uuid = entry.get_uuid().map_err(E::from)?.to_hyphenated().to_string();
let status = entry.get_status().map_err(E::from)?;
let status = status.as_str().to_string();
- let sched = util::get_dt_str(entry.get_scheduled(), "Not scheduled")?.to_string();
- let hidden = util::get_dt_str(entry.get_hidden(), "Not hidden")?.to_string();
- let due = util::get_dt_str(entry.get_due(), "No due")?.to_string();
+ let sched = util::get_dt_str(entry.get_scheduled(), "Not scheduled")?;
+ let hidden = util::get_dt_str(entry.get_hidden(), "Not hidden")?;
+ let due = util::get_dt_str(entry.get_due(), "No due")?;
let priority = entry.get_priority().map_err(E::from)?.map(|p| p.as_str().to_string()).unwrap_or("No prio".to_string());
let text = entry.get_content().to_owned();