aboutsummaryrefslogtreecommitdiff
path: root/crates/paths
diff options
context:
space:
mode:
authorJade <[email protected]>2021-06-14 05:57:10 +0100
committerJade <[email protected]>2021-06-14 05:58:05 +0100
commit20b325c7d50092cada3408aee958b3d523541f2c (patch)
tree5f8078106976c0573ef05861241f434fb5271891 /crates/paths
parent660a89620f65225359559ddcaf158bdb9dfe0d4c (diff)
tree-wide: make rustdoc links spiky so they are clickable
Diffstat (limited to 'crates/paths')
-rw-r--r--crates/paths/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/paths/src/lib.rs b/crates/paths/src/lib.rs
index f09ad37e3..48dac14c4 100644
--- a/crates/paths/src/lib.rs
+++ b/crates/paths/src/lib.rs
@@ -244,7 +244,7 @@ impl RelPath {
244 } 244 }
245} 245}
246 246
247/// Taken from https://github.com/rust-lang/cargo/blob/79c769c3d7b4c2cf6a93781575b7f592ef974255/src/cargo/util/paths.rs#L60-L85 247/// Taken from <https://github.com/rust-lang/cargo/blob/79c769c3d7b4c2cf6a93781575b7f592ef974255/src/cargo/util/paths.rs#L60-L85>
248fn normalize_path(path: &Path) -> PathBuf { 248fn normalize_path(path: &Path) -> PathBuf {
249 let mut components = path.components().peekable(); 249 let mut components = path.components().peekable();
250 let mut ret = if let Some(c @ Component::Prefix(..)) = components.peek().cloned() { 250 let mut ret = if let Some(c @ Component::Prefix(..)) = components.peek().cloned() {