From a30165d84fff15366e4623ead2a79b8f0d4ef735 Mon Sep 17 00:00:00 2001 From: Zak Stucke Date: Thu, 22 Feb 2024 22:01:31 +0200 Subject: [PATCH] Fix windows --- rust/bitbazaar/cli/shell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/bitbazaar/cli/shell.rs b/rust/bitbazaar/cli/shell.rs index 11eee8cf..1d3a864e 100644 --- a/rust/bitbazaar/cli/shell.rs +++ b/rust/bitbazaar/cli/shell.rs @@ -122,7 +122,7 @@ impl Shell { pub fn push_stdout(&mut self, stdout: &str) { #[cfg(windows)] // Need to clean on windows: - self.stdout.push_str(stdout.replace("\r\n", "\n")); + self.stdout.push_str(&stdout.replace("\r\n", "\n")); #[cfg(not(windows))] self.stdout.push_str(stdout); @@ -131,7 +131,7 @@ impl Shell { pub fn push_stderr(&mut self, stderr: &str) { #[cfg(windows)] // Need to clean on windows: - self.stderr.push_str(stderr.replace("\r\n", "\n")); + self.stderr.push_str(&stderr.replace("\r\n", "\n")); #[cfg(not(windows))] self.stderr.push_str(stderr);