aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model
diff options
context:
space:
mode:
Diffstat (limited to 'crates/project_model')
-rw-r--r--crates/project_model/src/cargo_workspace.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/project_model/src/cargo_workspace.rs b/crates/project_model/src/cargo_workspace.rs
index 4d339d9c0..bb3b6f2ef 100644
--- a/crates/project_model/src/cargo_workspace.rs
+++ b/crates/project_model/src/cargo_workspace.rs
@@ -178,8 +178,7 @@ impl CargoWorkspace {
178 match utf8_stdout(rustc) { 178 match utf8_stdout(rustc) {
179 Ok(stdout) => { 179 Ok(stdout) => {
180 let field = "host: "; 180 let field = "host: ";
181 let target = 181 let target = stdout.lines().find_map(|l| l.strip_prefix(field));
182 stdout.lines().find_map(|l| l.strip_prefix(field));
183 if let Some(target) = target { 182 if let Some(target) = target {
184 Some(target.to_string()) 183 Some(target.to_string())
185 } else { 184 } else {