mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Fun times with rustfmt
This commit is contained in:
parent
71478e067b
commit
faed47b3d3
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue