From 4479ceddd48ae062fa10879ceb199b771fa35add Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 1 May 2020 14:15:04 +0200 Subject: output filename as (lossy) string, not using Debug This has the benefit that it removes the quotes, and it works better on Windows, where double slashes were used. --- src/output/formats.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/output') diff --git a/src/output/formats.rs b/src/output/formats.rs index 10d84fc..599e804 100644 --- a/src/output/formats.rs +++ b/src/output/formats.rs @@ -23,7 +23,13 @@ impl Format for HumanReadable { use colored::Colorize; let mut result = String::new(); - writeln!(result, "{}: {:?}", "File".green(), item.log_file).unwrap(); + writeln!( + result, + "{}: {}", + "File".green(), + item.log_file.to_string_lossy() + ) + .unwrap(); let outcome = match item.outcome { FightOutcome::Success => "SUCCESS".green(), FightOutcome::Wipe => "WIPE".red(), -- cgit v1.2.3