aboutsummaryrefslogtreecommitdiff
path: root/crates/project_model
diff options
context:
space:
mode:
Diffstat (limited to 'crates/project_model')
-rw-r--r--crates/project_model/src/workspace.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/project_model/src/workspace.rs b/crates/project_model/src/workspace.rs
index 886b586a3..2155687ec 100644
--- a/crates/project_model/src/workspace.rs
+++ b/crates/project_model/src/workspace.rs
@@ -305,11 +305,11 @@ impl ProjectWorkspace {
305 // Set deps to the core, std and to the lib target of the current package 305 // Set deps to the core, std and to the lib target of the current package
306 for &from in pkg_crates.get(&pkg).into_iter().flatten() { 306 for &from in pkg_crates.get(&pkg).into_iter().flatten() {
307 if let Some((to, name)) = lib_tgt.clone() { 307 if let Some((to, name)) = lib_tgt.clone() {
308 // For root projects with dashes in their name,
309 // cargo metadata does not do any normalization,
310 // so we do it ourselves currently
311 let name = CrateName::normalize_dashes(&name);
312 if to != from { 308 if to != from {
309 // For root projects with dashes in their name,
310 // cargo metadata does not do any normalization,
311 // so we do it ourselves currently
312 let name = CrateName::normalize_dashes(&name);
313 add_dep(&mut crate_graph, from, name, to); 313 add_dep(&mut crate_graph, from, name, to);
314 } 314 }
315 } 315 }