mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Minor
This commit is contained in:
parent
db218006c9
commit
a0c4dbc399
1 changed files with 4 additions and 4 deletions
|
@ -305,11 +305,11 @@ impl ProjectWorkspace {
|
||||||
// Set deps to the core, std and to the lib target of the current package
|
// Set deps to the core, std and to the lib target of the current package
|
||||||
for &from in pkg_crates.get(&pkg).into_iter().flatten() {
|
for &from in pkg_crates.get(&pkg).into_iter().flatten() {
|
||||||
if let Some((to, name)) = lib_tgt.clone() {
|
if let Some((to, name)) = lib_tgt.clone() {
|
||||||
// For root projects with dashes in their name,
|
|
||||||
// cargo metadata does not do any normalization,
|
|
||||||
// so we do it ourselves currently
|
|
||||||
let name = CrateName::normalize_dashes(&name);
|
|
||||||
if to != from {
|
if to != from {
|
||||||
|
// For root projects with dashes in their name,
|
||||||
|
// cargo metadata does not do any normalization,
|
||||||
|
// so we do it ourselves currently
|
||||||
|
let name = CrateName::normalize_dashes(&name);
|
||||||
add_dep(&mut crate_graph, from, name, to);
|
add_dep(&mut crate_graph, from, name, to);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue