aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-04-06 13:19:18 +0200
committerDaniel <kingdread@gmx.de>2020-04-06 13:19:18 +0200
commitf7a0f17ce47e15f4cb39b49fecf4e252ce7897c3 (patch)
treeaacdcbd44f686426813a734ce2797df42d21d587 /src
parentcdf16c9b4e131c8d6bf770fcf6e3677464340961 (diff)
downloadraidgrep-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.rs3
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)
}
}