Skip to content

Commit

Permalink
Fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke committed Feb 22, 2024
1 parent 4caaa60 commit a30165d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/bitbazaar/cli/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit a30165d

Please sign in to comment.