diff options
author | Aleksey Kladov <[email protected]> | 2020-03-02 13:28:34 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-02 13:28:34 +0000 |
commit | 62e62d1c23213e67e22e37205eb78b273b13392f (patch) | |
tree | 71807f1e5ac6cb803a64c40af9f91b21e4431bfc /crates/ra_hir_def/src | |
parent | cf23ca771967d473a2efd0c0b0cf9f285dc3107e (diff) |
Reformat?
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r-- | crates/ra_hir_def/src/path/lower.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_hir_def/src/path/lower.rs b/crates/ra_hir_def/src/path/lower.rs index 0934520d7..4900000fe 100644 --- a/crates/ra_hir_def/src/path/lower.rs +++ b/crates/ra_hir_def/src/path/lower.rs | |||
@@ -101,11 +101,7 @@ pub(super) fn lower_path(mut path: ast::Path, hygiene: &Hygiene) -> Option<Path> | |||
101 | break; | 101 | break; |
102 | } | 102 | } |
103 | ast::PathSegmentKind::SuperKw => { | 103 | ast::PathSegmentKind::SuperKw => { |
104 | let nested_super_count = if let PathKind::Super(n) = kind { | 104 | let nested_super_count = if let PathKind::Super(n) = kind { n } else { 0 }; |
105 | n | ||
106 | } else { | ||
107 | 0 | ||
108 | }; | ||
109 | kind = PathKind::Super(nested_super_count + 1); | 105 | kind = PathKind::Super(nested_super_count + 1); |
110 | } | 106 | } |
111 | } | 107 | } |