Use StoreId::local_display_string() for less errorhandling here
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
f558556b3a
commit
0888e4345c
2 changed files with 3 additions and 13 deletions
|
@ -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);
|
||||
|
|
|
@ -236,7 +236,7 @@ mod tests {
|
|||
|
||||
use store::Store;
|
||||
use storeid::StoreId;
|
||||
use file_abstraction::InMemoryFileAbstraction;
|
||||
use file_abstraction::inmemory::InMemoryFileAbstraction;
|
||||
use libimagutil::variants::generate_variants;
|
||||
|
||||
pub fn get_store() -> Store {
|
||||
|
|
Loading…
Reference in a new issue