Fix rustfmt
This commit is contained in:
parent
60b6470104
commit
8c456cbf5f
2 changed files with 5 additions and 0 deletions
|
@ -137,6 +137,10 @@ pub(crate) fn format_expr(
|
|||
ast::ExprKind::Tup(ref items) => {
|
||||
rewrite_tuple(context, items.iter(), expr.span, shape, items.len() == 1)
|
||||
}
|
||||
ast::ExprKind::Use(_, _) => {
|
||||
// FIXME: properly implement this
|
||||
Ok(context.snippet(expr.span()).to_owned())
|
||||
}
|
||||
ast::ExprKind::Let(ref pat, ref expr, _span, _) => rewrite_let(context, shape, pat, expr),
|
||||
ast::ExprKind::If(..)
|
||||
| ast::ExprKind::ForLoop { .. }
|
||||
|
|
|
@ -513,6 +513,7 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr
|
|||
| ast::ExprKind::Become(..)
|
||||
| ast::ExprKind::Yeet(..)
|
||||
| ast::ExprKind::Tup(..)
|
||||
| ast::ExprKind::Use(..)
|
||||
| ast::ExprKind::Type(..)
|
||||
| ast::ExprKind::Yield(None)
|
||||
| ast::ExprKind::Underscore => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue