Small fixes

This commit is contained in:
Kirill Bulatov 2019-08-26 23:00:35 +03:00
parent 590aed2eec
commit 4adfdea1ad
2 changed files with 15 additions and 13 deletions

View file

@ -97,7 +97,12 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
}
}
fn validate_results_in_tail_expr(&mut self, body_id: ExprId, id: ExprId, db: &impl HirDatabase) {
fn validate_results_in_tail_expr(
&mut self,
body_id: ExprId,
id: ExprId,
db: &impl HirDatabase,
) {
// the mismatch will be on the whole block currently
let mismatch = match self.infer.type_mismatch_for_expr(body_id) {
Some(m) => m,