diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index 00325cd99ad..8e12942011c 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs @@ -135,7 +135,7 @@ impl Path { } 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<'_> {