diff options
author | Kirill Bulatov <[email protected]> | 2019-08-26 21:00:35 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2019-08-26 21:00:35 +0100 |
commit | 4adfdea1ad5aca393fa5bb9ff40fdc05827fcd56 (patch) | |
tree | 1ffe483a008c2d43441d7f04ef0b006823faf5f0 /crates/ra_hir/src/expr/validation.rs | |
parent | 590aed2eec869a1b64c5d3c07a26dd59c669004b (diff) |
Small fixes
Diffstat (limited to 'crates/ra_hir/src/expr/validation.rs')
-rw-r--r-- | crates/ra_hir/src/expr/validation.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_hir/src/expr/validation.rs b/crates/ra_hir/src/expr/validation.rs index c99c9c869..c8ae19869 100644 --- a/crates/ra_hir/src/expr/validation.rs +++ b/crates/ra_hir/src/expr/validation.rs | |||
@@ -97,7 +97,12 @@ impl<'a, 'b> ExprValidator<'a, 'b> { | |||
97 | } | 97 | } |
98 | } | 98 | } |
99 | 99 | ||
100 | fn validate_results_in_tail_expr(&mut self, body_id: ExprId, id: ExprId, db: &impl HirDatabase) { | 100 | fn validate_results_in_tail_expr( |
101 | &mut self, | ||
102 | body_id: ExprId, | ||
103 | id: ExprId, | ||
104 | db: &impl HirDatabase, | ||
105 | ) { | ||
101 | // the mismatch will be on the whole block currently | 106 | // the mismatch will be on the whole block currently |
102 | let mismatch = match self.infer.type_mismatch_for_expr(body_id) { | 107 | let mismatch = match self.infer.type_mismatch_for_expr(body_id) { |
103 | Some(m) => m, | 108 | Some(m) => m, |