We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f516c96 commit bb4fd2cCopy full SHA for bb4fd2c
build_system/src/utils.rs
@@ -1,4 +1,3 @@
1
-use std::borrow::Cow;
2
use std::collections::HashMap;
3
use std::ffi::OsStr;
4
use std::fmt::Debug;
@@ -52,18 +51,12 @@ fn check_exit_status(
52
51
let stdout = String::from_utf8_lossy(&output.stdout);
53
if !stdout.is_empty() {
54
error.push_str("\n==== STDOUT ====\n");
55
- match stdout {
56
- Cow::Owned(s) => error.push_str(&s),
57
- Cow::Borrowed(s) => error.push_str(s),
58
- }
+ error.push_str(&*stdout);
59
}
60
let stderr = String::from_utf8_lossy(&output.stderr);
61
if !stderr.is_empty() {
62
error.push_str("\n==== STDERR ====\n");
63
- match stderr {
64
65
66
+ error.push_str(&*stderr);
67
68
69
Err(error)
0 commit comments