From 7816eaa8e48e32ed327226f48a3d88145401c905 Mon Sep 17 00:00:00 2001 From: Kevin Matthes <92332892+kevinmatthes@users.noreply.github.com> Date: Thu, 24 Aug 2023 20:39:18 +0200 Subject: [PATCH] [Bugfix] Do not Modify File Contents of Recursed Directories (#645) --- src/traits/read_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traits/read_file.rs b/src/traits/read_file.rs index cec04e2c..e137ea89 100644 --- a/src/traits/read_file.rs +++ b/src/traits/read_file.rs @@ -85,7 +85,7 @@ impl ReadFile for PathBuf { .path() .behaviour(show_error_messages) { - Ok(string) => result.append_as_line(string), + Ok(string) => result.push_str(&string), Err(error) => return Err(error), } }