aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/hover.rs
diff options
context:
space:
mode:
authorZac Pullar-Strecker <[email protected]>2020-06-16 05:08:40 +0100
committerZac Pullar-Strecker <[email protected]>2020-06-30 09:10:23 +0100
commitf9893d370c4c3b015698169d27d2833742441560 (patch)
tree2712350ebeeb7152ab66a3f9318b43651c35276e /crates/ra_ide/src/hover.rs
parent73d5a31450e648698ad31531f21ac5659cc271ac (diff)
Remove old comment, remove unecessary local
Diffstat (limited to 'crates/ra_ide/src/hover.rs')
-rw-r--r--crates/ra_ide/src/hover.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs
index 82aa24f4f..9f8ab4795 100644
--- a/crates/ra_ide/src/hover.rs
+++ b/crates/ra_ide/src/hover.rs
@@ -589,11 +589,8 @@ fn try_resolve_path(db: &RootDatabase, definition: &Definition, link: &str) -> O
589 let module = definition.module(db)?; 589 let module = definition.module(db)?;
590 let krate = module.krate(); 590 let krate = module.krate();
591 let import_map = db.import_map(krate.into()); 591 let import_map = db.import_map(krate.into());
592 // TODO: It should be possible to fall back to not-necessarilly-public paths if we can't find a public one,
593 // then hope rustdoc was run locally with `--document-private-items`
594 let base = import_map.path_of(ns)?;
595 let base = once(format!("{}", krate.display_name(db)?)) 592 let base = once(format!("{}", krate.display_name(db)?))
596 .chain(base.segments.iter().map(|name| format!("{}", name))) 593 .chain(import_map.path_of(ns)?.segments.iter().map(|name| format!("{}", name)))
597 .join("/"); 594 .join("/");
598 595
599 get_doc_url(db, &krate) 596 get_doc_url(db, &krate)