mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Simplify
This commit is contained in:
parent
89218cf29c
commit
60fa981df1
11 changed files with 113 additions and 149 deletions
|
@ -307,7 +307,7 @@ fn doc_modpath_from_str(link: &str) -> Option<ModPath> {
|
|||
let kind = match parts.next()? {
|
||||
"" => PathKind::Abs,
|
||||
"crate" => PathKind::Crate,
|
||||
"self" => PathKind::Super(0),
|
||||
"self" => PathKind::SELF,
|
||||
"super" => {
|
||||
let mut deg = 1;
|
||||
for segment in parts.by_ref() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue