aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
}
}