Fix the rustfmt build
This commit is contained in:
parent
a15c3a36d7
commit
944ba8c8a7
2 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,10 @@ pub(crate) fn format_expr(
|
||||||
ast::ExprKind::Ret(Some(ref expr)) => {
|
ast::ExprKind::Ret(Some(ref expr)) => {
|
||||||
rewrite_unary_prefix(context, "return ", &**expr, shape)
|
rewrite_unary_prefix(context, "return ", &**expr, shape)
|
||||||
}
|
}
|
||||||
|
ast::ExprKind::Yeet(None) => Some("do yeet".to_owned()),
|
||||||
|
ast::ExprKind::Yeet(Some(ref expr)) => {
|
||||||
|
rewrite_unary_prefix(context, "do yeet ", &**expr, shape)
|
||||||
|
}
|
||||||
ast::ExprKind::Box(ref expr) => rewrite_unary_prefix(context, "box ", &**expr, shape),
|
ast::ExprKind::Box(ref expr) => rewrite_unary_prefix(context, "box ", &**expr, shape),
|
||||||
ast::ExprKind::AddrOf(borrow_kind, mutability, ref expr) => {
|
ast::ExprKind::AddrOf(borrow_kind, mutability, ref expr) => {
|
||||||
rewrite_expr_addrof(context, borrow_kind, mutability, expr, shape)
|
rewrite_expr_addrof(context, borrow_kind, mutability, expr, shape)
|
||||||
|
|
|
@ -512,6 +512,7 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr
|
||||||
| ast::ExprKind::Range(..)
|
| ast::ExprKind::Range(..)
|
||||||
| ast::ExprKind::Repeat(..)
|
| ast::ExprKind::Repeat(..)
|
||||||
| ast::ExprKind::Ret(..)
|
| ast::ExprKind::Ret(..)
|
||||||
|
| ast::ExprKind::Yeet(..)
|
||||||
| ast::ExprKind::Tup(..)
|
| ast::ExprKind::Tup(..)
|
||||||
| ast::ExprKind::Type(..)
|
| ast::ExprKind::Type(..)
|
||||||
| ast::ExprKind::Yield(None)
|
| ast::ExprKind::Yield(None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue