mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 11:13:40 +03:00
perf: remove unnecessary heap allocation (#7731)
This commit is contained in:
parent
af3268a4be
commit
41067cef00
@ -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(|_| ()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user