summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-04-18 19:34:29 +0200
committerGitHub <noreply@github.com>2018-04-18 19:34:29 +0200
commit659f95981674ce12a03df0eea16b4c268ff333d4 (patch)
tree38aee83d9b68b86c2affbf4b25a32b792d8242db
parent7634bd77c59f897bd185e851ad3a429731c8234f (diff)
parentb690925e0152ab85d9795bdf78e119ad59dd6543 (diff)
downloadimag-659f95981674ce12a03df0eea16b4c268ff333d4.tar.gz
imag-659f95981674ce12a03df0eea16b4c268ff333d4.tar.xz
-rw-r--r--bin/domain/imag-diary/src/list.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/domain/imag-diary/src/list.rs b/bin/domain/imag-diary/src/list.rs
index f1a8164f..55ab2740 100644
--- a/bin/domain/imag-diary/src/list.rs
+++ b/bin/domain/imag-diary/src/list.rs
@@ -29,7 +29,7 @@ use libimagutil::debug_result::*;
use libimagdiary::diaryid::DiaryId;
use libimagdiary::diaryid::FromStoreId;
use libimagdiary::error::Result;
-
+use libimagstore::storeid::IntoStoreId;
use util::get_diary_name;
@@ -48,7 +48,7 @@ pub fn list(rt: &Runtime) {
[id.year() as u32, id.month(), id.day(), id.hour(), id.minute(), id.second()]
});
- for id in ids {
+ for id in ids.into_iter().map(|id| id.into_storeid().map_err_trace_exit_unwrap(1)) {
writeln!(rt.stdout(), "{}", id)
.to_exit_code()
.unwrap_or_exit();