From 35006eba79b9a445c4ebec66f1a93b3170398e0e Mon Sep 17 00:00:00 2001 From: ivan770 Date: Wed, 9 Dec 2020 08:22:13 +0000 Subject: Apply rustfmt changes --- crates/hir_ty/src/diagnostics/expr.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'crates') diff --git a/crates/hir_ty/src/diagnostics/expr.rs b/crates/hir_ty/src/diagnostics/expr.rs index 27ffcf291..9e461e0b0 100644 --- a/crates/hir_ty/src/diagnostics/expr.rs +++ b/crates/hir_ty/src/diagnostics/expr.rs @@ -334,11 +334,12 @@ impl<'a, 'b> ExprValidator<'a, 'b> { None => return, }; - let possible_tail_ty = if let Some(possible_tail_ty) = self.infer.type_of_expr.get(possible_tail_id) { - possible_tail_ty - } else { - return; - }; + let possible_tail_ty = + if let Some(possible_tail_ty) = self.infer.type_of_expr.get(possible_tail_id) { + possible_tail_ty + } else { + return; + }; if mismatch.actual != Ty::unit() || mismatch.expected != *possible_tail_ty { return; @@ -346,10 +347,8 @@ impl<'a, 'b> ExprValidator<'a, 'b> { let (_, source_map) = db.body_with_source_map(self.owner.into()); if let Ok(source_ptr) = source_map.expr_syntax(possible_tail_id) { - self.sink.push(RemoveThisSemicolon { - file: source_ptr.file_id, - expr: source_ptr.value, - }); + self.sink + .push(RemoveThisSemicolon { file: source_ptr.file_id, expr: source_ptr.value }); } } } -- cgit v1.2.3