mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Simplify
This commit is contained in:
parent
89218cf29c
commit
60fa981df1
11 changed files with 113 additions and 149 deletions
|
@ -1942,7 +1942,7 @@ impl HirDisplay for Path {
|
|||
(_, PathKind::Plain) => {}
|
||||
(_, PathKind::Abs) => {}
|
||||
(_, PathKind::Crate) => write!(f, "crate")?,
|
||||
(_, PathKind::Super(0)) => write!(f, "self")?,
|
||||
(_, &PathKind::SELF) => write!(f, "self")?,
|
||||
(_, PathKind::Super(n)) => {
|
||||
for i in 0..*n {
|
||||
if i > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue