aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/code_model.rs')
-rw-r--r--crates/ra_hir/src/code_model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs
index 0edcdb177..a842dfed6 100644
--- a/crates/ra_hir/src/code_model.rs
+++ b/crates/ra_hir/src/code_model.rs
@@ -1104,7 +1104,7 @@ impl Type {
1104 1104
1105 pub fn as_adt(&self) -> Option<Adt> { 1105 pub fn as_adt(&self) -> Option<Adt> {
1106 let (adt, _subst) = self.ty.value.as_adt()?; 1106 let (adt, _subst) = self.ty.value.as_adt()?;
1107 Some(adt) 1107 Some(adt.into())
1108 } 1108 }
1109 1109
1110 fn derived(&self, ty: Ty) -> Type { 1110 fn derived(&self, ty: Ty) -> Type {