diff options
author | Daniel <kingdread@gmx.de> | 2020-04-06 13:19:18 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-04-06 13:19:18 +0200 |
commit | f7a0f17ce47e15f4cb39b49fecf4e252ce7897c3 (patch) | |
tree | aacdcbd44f686426813a734ce2797df42d21d587 /src | |
parent | cdf16c9b4e131c8d6bf770fcf6e3677464340961 (diff) | |
download | raidgrep-f7a0f17ce47e15f4cb39b49fecf4e252ce7897c3.tar.gz raidgrep-f7a0f17ce47e15f4cb39b49fecf4e252ce7897c3.tar.bz2 raidgrep-f7a0f17ce47e15f4cb39b49fecf4e252ce7897c3.zip |
properly add newline after filenames
Diffstat (limited to 'src')
-rw-r--r-- | src/output/formats.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/formats.rs b/src/output/formats.rs index a5171a8..5915069 100644 --- a/src/output/formats.rs +++ b/src/output/formats.rs @@ -56,6 +56,7 @@ pub struct FileOnly; impl Format for FileOnly { fn format_result(&self, item: &LogResult) -> String { - item.log_file.to_string_lossy().into_owned() + let filename = item.log_file.to_string_lossy(); + format!("{}\n", filename) } } |