From 6bf49aa6b52b501f01efb786e986e97d0719baf6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 27 Sep 2018 08:09:39 +0200 Subject: [PATCH] Fix: 'imag-contact show' should increase output counter --- bin/domain/imag-contact/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/domain/imag-contact/src/main.rs b/bin/domain/imag-contact/src/main.rs index e1005d7b..c8c033b0 100644 --- a/bin/domain/imag-contact/src/main.rs +++ b/bin/domain/imag-contact/src/main.rs @@ -227,8 +227,9 @@ fn show(rt: &Runtime) { None } }) - .for_each(|elem| { - let data = build_data_object_for_handlebars(0, &elem); + .enumerate() + .for_each(|(i, elem)| { + let data = build_data_object_for_handlebars(i, &elem); let s = show_format .render("format", &data)