diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-02-11 22:33:31 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-02-15 22:15:06 +0100 |
commit | 08b7a46c74c37d7179d7b9332e8e165faa056ffc (patch) | |
tree | 5afb10b30a3781a2b738b83163db7e7402728b93 /bin/core | |
parent | 9af7e9a9abdab873e4442519e2a7254536337d0a (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.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/bin/core/imag-diagnostics/src/main.rs b/bin/core/imag-diagnostics/src/main.rs index 257af6a5..4e978d55 100644 --- a/bin/core/imag-diagnostics/src/main.rs +++ b/bin/core/imag-diagnostics/src/main.rs @@ -240,14 +240,7 @@ fn main() { do_write!(out, "{} average overall bytecount", sum_overall_byte_size / n); 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") - ); + do_write!(out, "Largest Entry ({} bytes): {}", num, path.local_display_string()); } do_write!(out, "{} average internal link count per entry", num_internal_links / n); @@ -255,12 +248,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); |