mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Apply rustfmt changes
This commit is contained in:
parent
86c183716c
commit
35006eba79
1 changed files with 8 additions and 9 deletions
|
@ -334,7 +334,8 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
||||||
None => return,
|
None => return,
|
||||||
};
|
};
|
||||||
|
|
||||||
let possible_tail_ty = if let Some(possible_tail_ty) = self.infer.type_of_expr.get(possible_tail_id) {
|
let possible_tail_ty =
|
||||||
|
if let Some(possible_tail_ty) = self.infer.type_of_expr.get(possible_tail_id) {
|
||||||
possible_tail_ty
|
possible_tail_ty
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
@ -346,10 +347,8 @@ impl<'a, 'b> ExprValidator<'a, 'b> {
|
||||||
|
|
||||||
let (_, source_map) = db.body_with_source_map(self.owner.into());
|
let (_, source_map) = db.body_with_source_map(self.owner.into());
|
||||||
if let Ok(source_ptr) = source_map.expr_syntax(possible_tail_id) {
|
if let Ok(source_ptr) = source_map.expr_syntax(possible_tail_id) {
|
||||||
self.sink.push(RemoveThisSemicolon {
|
self.sink
|
||||||
file: source_ptr.file_id,
|
.push(RemoveThisSemicolon { file: source_ptr.file_id, expr: source_ptr.value });
|
||||||
expr: source_ptr.value,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue