mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
Remove unneeded handling for ExternalLocation::Unknown in rustdoc render context
This commit is contained in:
@@ -349,12 +349,7 @@ pub(crate) fn href_from_span(&self, span: clean::Span, with_lines: bool) -> Opti
|
||||
let e = ExternalCrate { crate_num: cnum };
|
||||
(e.name(self.tcx()), e.src_root(self.tcx()))
|
||||
}
|
||||
ExternalLocation::Unknown => {
|
||||
let e = ExternalCrate { crate_num: cnum };
|
||||
let name = e.name(self.tcx());
|
||||
root = name.to_string();
|
||||
(name, e.src_root(self.tcx()))
|
||||
}
|
||||
ExternalLocation::Unknown => return None,
|
||||
};
|
||||
|
||||
let href = RefCell::new(PathBuf::new());
|
||||
|
||||
Reference in New Issue
Block a user