fix(bench): fix bench compilation (#9474)

This commit is contained in:
Amr Bashir 2024-04-17 14:50:58 +02:00 committed by GitHub
parent 3fe9ae8520
commit 639d9abfdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,8 +92,8 @@ pub fn run_collect(cmd: &[&str]) -> (String, String) {
stderr,
status,
} = prog.wait_with_output().expect("failed to wait on child");
let stdout = String::from_utf8_lossy(&stdout);
let stderr = String::from_utf8_lossy(&stderr);
let stdout = String::from_utf8_lossy(&stdout).to_string();
let stderr = String::from_utf8_lossy(&stderr).to_string();
if !status.success() {
eprintln!("stdout: <<<{}>>>", stdout);
eprintln!("stderr: <<<{}>>>", stderr);