Explorar el Código

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

Amr Bashir hace 1 año
padre
commit
639d9abfdf
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tooling/bench/src/utils.rs

+ 2 - 2
tooling/bench/src/utils.rs

@@ -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);