summaryrefslogtreecommitdiffstats
path: root/bin/core
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-02-11 22:33:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-02-15 20:53:29 +0100
commit0888e4345c034b779a97cee382133937da3b24a8 (patch)
treedd64c788368220d0dcfa22fad107bbd6b42e0ee6 /bin/core
parentf558556b3a7e2870e4cc87f010dde91e22bf538a (diff)
Use StoreId::local_display_string() for less errorhandling here
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'bin/core')
-rw-r--r--bin/core/imag-diagnostics/src/main.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/bin/core/imag-diagnostics/src/main.rs b/bin/core/imag-diagnostics/src/main.rs
index 257af6a5..0102dd76 100644
--- a/bin/core/imag-diagnostics/src/main.rs
+++ b/bin/core/imag-diagnostics/src/main.rs
@@ -242,12 +242,7 @@ fn main() {
if let Some((num, path)) = max_overall_byte_size {
do_write!(out, "Largest Entry ({} bytes): {}",
num,
- path
- .into_pathbuf()
- .map_err_trace_exit_unwrap()
- .to_str()
- .unwrap_or("Failed converting path to string")
- );
+ path.local_display_string());
}
do_write!(out, "{} average internal link count per entry", num_internal_links / n);
@@ -255,12 +250,7 @@ fn main() {
if let Some((num, path)) = max_internal_links {
do_write!(out, "Entry with most internal links ({}): {}",
num,
- path
- .into_pathbuf()
- .map_err_trace_exit_unwrap()
- .to_str()
- .unwrap_or("Failed converting path to string")
- );
+ path.local_display_string());
}
do_write!(out, "{} verified entries", verified_count);
do_write!(out, "{} unverified entries", unverified_count);