Skip to content

Commit

Permalink
perf: remove unnecessary heap allocation (#7731)
Browse files Browse the repository at this point in the history
  • Loading branch information
thechampagne authored Sep 4, 2023
1 parent af3268a commit 41067ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub fn log_stdout() {
if let Ok(len) = reader.read_line(&mut buffer) {
if len == 0 {
break;
} else if let Ok(msg) = CString::new(buffer.clone())
} else if let Ok(msg) = CString::new(buffer.as_bytes())
.map_err(|_| ())
.and_then(|c| c.into_string().map_err(|_| ()))
{
Expand Down

0 comments on commit 41067ce

Please sign in to comment.