Fix imag-view for new view_entry() interface

This commit is contained in:
Matthias Beyer 2018-04-23 14:23:17 +02:00
parent 55d9b5456f
commit 653db333e6

View file

@ -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);
});
}
}