diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-20 19:17:28 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-20 19:17:28 +0000 |
commit | 825afb085452ea2ba365891504dc8339c756fb5e (patch) | |
tree | 1d3ebf7080fc56d31b19962e80f86a79dd4d7990 /crates/ra_hir_def | |
parent | 9467f81c588bf7a62ec882f293e0870c187b368b (diff) | |
parent | f5947be0ea6eb909cbb63420c3304adedf470b26 (diff) |
Merge #2622
2622: Simplify r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index 00325cd99..8e1294201 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs | |||
@@ -135,7 +135,7 @@ impl Path { | |||
135 | } | 135 | } |
136 | 136 | ||
137 | pub fn type_anchor(&self) -> Option<&TypeRef> { | 137 | pub fn type_anchor(&self) -> Option<&TypeRef> { |
138 | self.type_anchor.as_ref().map(|it| &**it) | 138 | self.type_anchor.as_deref() |
139 | } | 139 | } |
140 | 140 | ||
141 | pub fn segments(&self) -> PathSegments<'_> { | 141 | pub fn segments(&self) -> PathSegments<'_> { |