aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-11-17 12:29:45 +0000
committerAleksey Kladov <[email protected]>2020-11-17 14:25:58 +0000
commita0c4dbc399ee11cc8c34e5ef33d7c3cba8a03d47 (patch)
treee1aac8ae189e62ba0672c4fdf74a20f1006b7bd6
parentdb218006c928d8de6e31f6faae4bbb21c33ba4eb (diff)
Minor
-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 }