diff options
author | Daniel <kingdread@gmx.de> | 2020-05-01 14:15:04 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-05-01 14:15:04 +0200 |
commit | 4479ceddd48ae062fa10879ceb199b771fa35add (patch) | |
tree | e8080eeafc9942762fef26565081b4061de0b49f /src | |
parent | f3af2cf6966b6033563d315492fc6b84f433f780 (diff) | |
download | raidgrep-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/output/formats.rs | 8 |
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(), |