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:59 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-23 15:43:48 +0100
commitcaa83f0d9d20426e18023c90d0a96771e2d2e2aa (patch)
tree9bd0f5fbc2cdbd026e4922b394dc957b1098f277 /bin/domain/imag-todo/src/lib.rs
parent13561d6987587bfe5a729dda8f473dde175bb644 (diff)
downloadimag-caa83f0d9d20426e18023c90d0a96771e2d2e2aa.tar.gz
imag-caa83f0d9d20426e18023c90d0a96771e2d2e2aa.tar.xz
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r--bin/domain/imag-todo/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs
index ecad4c5c..88b36c1d 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -421,7 +421,7 @@ fn show(rt: &Runtime) -> Result<()> {
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 priority = entry.get_priority().map_err(E::from)?.map(|p| p.as_str().to_string()).unwrap_or_else(|| "No prio".to_string());
let text = entry.get_content().to_owned();