aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_project_model/src/cargo_workspace.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_project_model/src/cargo_workspace.rs b/crates/ra_project_model/src/cargo_workspace.rs
index 66db2be51..60cb8c1eb 100644
--- a/crates/ra_project_model/src/cargo_workspace.rs
+++ b/crates/ra_project_model/src/cargo_workspace.rs
@@ -209,6 +209,9 @@ impl CargoWorkspace {
209 for node in resolve.nodes { 209 for node in resolve.nodes {
210 let source = match pkg_by_id.get(&node.id) { 210 let source = match pkg_by_id.get(&node.id) {
211 Some(&src) => src, 211 Some(&src) => src,
212 // FIXME: replace this and a similar branch below with `.unwrap`, once
213 // https://github.com/rust-lang/cargo/issues/7841
214 // is fixed and hits stable (around 1.43-is probably?).
212 None => { 215 None => {
213 log::error!("Node id do not match in cargo metadata, ignoring {}", node.id); 216 log::error!("Node id do not match in cargo metadata, ignoring {}", node.id);
214 continue; 217 continue;