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) {
Ok(stdout) => {
let field = "host: ";
let target =
stdout.lines().find_map(|l| l.strip_prefix(field));
let target = stdout.lines().find_map(|l| l.strip_prefix(field));
if let Some(target) = target {
Some(target.to_string())
} else {