Skip to content

Commit f9a2abe

Browse files
committed
Fix rustfmt
1 parent 0aaedb8 commit f9a2abe

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/tools/rustfmt/src/expr.rs

+3
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ pub(crate) fn format_expr(
137137
ast::ExprKind::Tup(ref items) => {
138138
rewrite_tuple(context, items.iter(), expr.span, shape, items.len() == 1)
139139
}
140+
ast::ExprKind::Use(_, _) => {
141+
unimplemented!();
142+
}
140143
ast::ExprKind::Let(ref pat, ref expr, _span, _) => rewrite_let(context, shape, pat, expr),
141144
ast::ExprKind::If(..)
142145
| ast::ExprKind::ForLoop { .. }

src/tools/rustfmt/src/utils.rs

+1
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr
513513
| ast::ExprKind::Become(..)
514514
| ast::ExprKind::Yeet(..)
515515
| ast::ExprKind::Tup(..)
516+
| ast::ExprKind::Use(..)
516517
| ast::ExprKind::Type(..)
517518
| ast::ExprKind::Yield(None)
518519
| ast::ExprKind::Underscore => false,

0 commit comments

Comments
 (0)