Fun times with rustfmt
This commit is contained in:
@@ -178,8 +178,7 @@ impl CargoWorkspace {
|
|||||||
match utf8_stdout(rustc) {
|
match utf8_stdout(rustc) {
|
||||||
Ok(stdout) => {
|
Ok(stdout) => {
|
||||||
let field = "host: ";
|
let field = "host: ";
|
||||||
let target =
|
let target = stdout.lines().find_map(|l| l.strip_prefix(field));
|
||||||
stdout.lines().find_map(|l| l.strip_prefix(field));
|
|
||||||
if let Some(target) = target {
|
if let Some(target) = target {
|
||||||
Some(target.to_string())
|
Some(target.to_string())
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user