diff options
author | Aleksey Kladov <[email protected]> | 2020-11-17 12:29:45 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-17 14:25:58 +0000 |
commit | a0c4dbc399ee11cc8c34e5ef33d7c3cba8a03d47 (patch) | |
tree | e1aac8ae189e62ba0672c4fdf74a20f1006b7bd6 /crates/project_model | |
parent | db218006c928d8de6e31f6faae4bbb21c33ba4eb (diff) |
Minor
Diffstat (limited to 'crates/project_model')
-rw-r--r-- | crates/project_model/src/workspace.rs | 8 |
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 | } |