summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-10 01:00:22 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 02:03:35 +0100
commiteb70efe59ecac2c158cea58ca8abb5f1ae26a3f5 (patch)
treef78368fe8cff5373492675c54395f79314386777 /bin/domain/imag-todo/src/lib.rs
parente2e18eb3c896250ce98c054580861f3756a84889 (diff)
downloadimag-eb70efe59ecac2c158cea58ca8abb5f1ae26a3f5.tar.gz
imag-eb70efe59ecac2c158cea58ca8abb5f1ae26a3f5.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 72a51bd9..3e764287 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -289,7 +289,7 @@ fn list_todos(rt: &Runtime, matcher: &StatusMatcher, show_hidden: bool) -> Resul
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());
+ .unwrap_or_else(|| "No prio".to_string());
writeln!(sink, "{uuid} - {status} - {sched} - {hidden} - {due} - {prio}: {first_line}",
uuid = uuid,