Fun times with rustfmt

This commit is contained in:
Jon Gjengset 2020-12-17 10:24:58 -08:00
parent 71478e067b
commit faed47b3d3

View file

@ -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 {