aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-05-01 14:15:04 +0200
committerDaniel <kingdread@gmx.de>2020-05-01 14:15:04 +0200
commit4479ceddd48ae062fa10879ceb199b771fa35add (patch)
treee8080eeafc9942762fef26565081b4061de0b49f
parentf3af2cf6966b6033563d315492fc6b84f433f780 (diff)
downloadraidgrep-4479ceddd48ae062fa10879ceb199b771fa35add.tar.gz
raidgrep-4479ceddd48ae062fa10879ceb199b771fa35add.tar.bz2
raidgrep-4479ceddd48ae062fa10879ceb199b771fa35add.zip
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.
-rw-r--r--src/output/formats.rs8
1 files changed, 7 insertions, 1 deletions
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(),