Skip to content

Commit 35006eb

Browse files
authored
Apply rustfmt changes
1 parent 86c1837 commit 35006eb

File tree

1 file changed

+8
-9
lines changed
  • crates/hir_ty/src/diagnostics

1 file changed

+8
-9
lines changed

crates/hir_ty/src/diagnostics/expr.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -334,22 +334,21 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
334334
None => return,
335335
};
336336

337-
let possible_tail_ty = if let Some(possible_tail_ty) = self.infer.type_of_expr.get(possible_tail_id) {
338-
possible_tail_ty
339-
} else {
340-
return;
341-
};
337+
let possible_tail_ty =
338+
if let Some(possible_tail_ty) = self.infer.type_of_expr.get(possible_tail_id) {
339+
possible_tail_ty
340+
} else {
341+
return;
342+
};
342343

343344
if mismatch.actual != Ty::unit() || mismatch.expected != *possible_tail_ty {
344345
return;
345346
}
346347

347348
let (_, source_map) = db.body_with_source_map(self.owner.into());
348349
if let Ok(source_ptr) = source_map.expr_syntax(possible_tail_id) {
349-
self.sink.push(RemoveThisSemicolon {
350-
file: source_ptr.file_id,
351-
expr: source_ptr.value,
352-
});
350+
self.sink
351+
.push(RemoveThisSemicolon { file: source_ptr.file_id, expr: source_ptr.value });
353352
}
354353
}
355354
}

0 commit comments

Comments
 (0)