summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-view/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/core/imag-view/src/main.rs')
-rw-r--r--bin/core/imag-view/src/main.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/core/imag-view/src/main.rs b/bin/core/imag-view/src/main.rs
index 0c2335ba..08c6c0d2 100644
--- a/bin/core/imag-view/src/main.rs
+++ b/bin/core/imag-view/src/main.rs
@@ -98,8 +98,7 @@ fn main() {
let files = entries
.map(|entry| {
let tmpfile = create_tempfile_for(&entry, view_header, hide_content);
- rt.report_touched(entry.get_location())
- .map_err_trace_exit_unwrap(1);
+ rt.report_touched(entry.get_location()).unwrap_or_exit();
tmpfile
})
.collect::<Vec<_>>();
@@ -209,8 +208,7 @@ fn main() {
.view_entry(&entry, &mut outlock)
.map_err_trace_exit_unwrap(1);
- rt.report_touched(entry.get_location())
- .map_err_trace_exit_unwrap(1);
+ rt.report_touched(entry.get_location()).unwrap_or_exit();
});
} else {
let mut viewer = StdoutViewer::new(view_header, !hide_content);
@@ -244,8 +242,7 @@ fn main() {
.view_entry(&entry, &mut outlock)
.map_err_trace_exit_unwrap(1);
- rt.report_touched(entry.get_location())
- .map_err_trace_exit_unwrap(1);
+ rt.report_touched(entry.get_location()).unwrap_or_exit();
});
}
}