Fix link generation for locate foreign macro in jump to definition feature

This commit is contained in:
Guillaume Gomez 2024-02-27 16:19:19 +01:00
parent 53ed660d47
commit 8719b74027

View file

@ -575,7 +575,7 @@ fn generate_macro_def_id_path(
ExternalLocation::Local => {
// `root_path` always end with a `/`.
format!(
"{root_path}{crate_name}/{path}",
"{root_path}{path}",
root_path = root_path.unwrap_or(""),
path = path.iter().map(|p| p.as_str()).join("/")
)