diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index 00325cd99ad3..8e12942011c5 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs @@ -135,7 +135,7 @@ pub fn kind(&self) -> &PathKind { } pub fn type_anchor(&self) -> Option<&TypeRef> { - self.type_anchor.as_ref().map(|it| &**it) + self.type_anchor.as_deref() } pub fn segments(&self) -> PathSegments<'_> {