From 653db333e66f0eeccd6b18323ff4eb1d7e83d507 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 23 Apr 2018 14:23:17 +0200 Subject: [PATCH] Fix imag-view for new view_entry() interface --- bin/core/imag-view/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/core/imag-view/src/main.rs b/bin/core/imag-view/src/main.rs index 15d5bbf3..67fc6a07 100644 --- a/bin/core/imag-view/src/main.rs +++ b/bin/core/imag-view/src/main.rs @@ -185,6 +185,9 @@ fn main() { viewer.wrap_at(width); } + let output = rt.stdout(); + let mut lockout = output.lock(); + entry_ids .into_iter() .into_get_iter(rt.store()) @@ -195,7 +198,7 @@ fn main() { .map_err_trace_exit_unwrap(1) }) .for_each(|e| { - viewer.view_entry(&e).map_err_trace_exit_unwrap(1); + viewer.view_entry(&e, &mut lockout).map_err_trace_exit_unwrap(1); }); } }