mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 19:34:16 +00:00
tree-wide: make rustdoc links spiky so they are clickable
This commit is contained in:
parent
660a89620f
commit
20b325c7d5
32 changed files with 37 additions and 37 deletions
|
@ -244,7 +244,7 @@ impl RelPath {
|
|||
}
|
||||
}
|
||||
|
||||
/// Taken from https://github.com/rust-lang/cargo/blob/79c769c3d7b4c2cf6a93781575b7f592ef974255/src/cargo/util/paths.rs#L60-L85
|
||||
/// Taken from <https://github.com/rust-lang/cargo/blob/79c769c3d7b4c2cf6a93781575b7f592ef974255/src/cargo/util/paths.rs#L60-L85>
|
||||
fn normalize_path(path: &Path) -> PathBuf {
|
||||
let mut components = path.components().peekable();
|
||||
let mut ret = if let Some(c @ Component::Prefix(..)) = components.peek().cloned() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue