Skip to content

Commit

Permalink
remove unnecessary heap allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
thechampagne authored Aug 31, 2023
1 parent af3268a commit bedbbd0
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 bedbbd0

Please sign in to comment.