How do I resolve this? The execution is a return from process::Command .output().
let mut gradinglog = std::str::from_utf8(&execution.stdout).unwrap().to_string() +
std::str::from_utf8(&execution.stderr).unwrap().to_string();
Compilation error log:
error[E0308]: mismatched types
--> src/main.rs:270:87
|
270 | ...rap().to_string() + std::str::from_utf8(&execution.stderr).unwrap().to_string();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected `&str`, found struct `std::string::String`
| help: consider borrowing here: `&std::str::from_utf8(&execution.stderr).unwrap().to_string()`