Skip to content

Commit f9893d3

Browse files
committed
Remove old comment, remove unecessary local
1 parent 73d5a31 commit f9893d3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/ra_ide/src/hover.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,11 +589,8 @@ fn try_resolve_path(db: &RootDatabase, definition: &Definition, link: &str) -> O
589589
let module = definition.module(db)?;
590590
let krate = module.krate();
591591
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)?;
595592
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)))
597594
.join("/");
598595

599596
get_doc_url(db, &krate)

0 commit comments

Comments
 (0)