aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/expr/validation.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_hir/src/expr/validation.rs b/crates/ra_hir/src/expr/validation.rs
index 0e7b08c54..ca7db61bc 100644
--- a/crates/ra_hir/src/expr/validation.rs
+++ b/crates/ra_hir/src/expr/validation.rs
@@ -106,12 +106,10 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
106 Some(m) => m, 106 Some(m) => m,
107 None => return, 107 None => return,
108 }; 108 };
109
110 let ret = match &mismatch.expected { 109 let ret = match &mismatch.expected {
111 Ty::Apply(t) => t, 110 Ty::Apply(t) => t,
112 _ => return, 111 _ => return,
113 }; 112 };
114
115 let ret_enum = match ret.ctor { 113 let ret_enum = match ret.ctor {
116 TypeCtor::Adt(AdtDef::Enum(e)) => e, 114 TypeCtor::Adt(AdtDef::Enum(e)) => e,
117 _ => return, 115 _ => return,