Skip to content

Commit 47fd519

Browse files
rscprofytmimi
authored andcommitted
Update src/expr.rs
Co-authored-by: Yacin Tmimi <yacintmimi@gmail.com>
1 parent 83f249d commit 47fd519

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/expr.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,8 @@ pub(crate) fn format_expr(
225225
| ast::ExprKind::MethodCall(..)
226226
| ast::ExprKind::Await(_, _) => rewrite_chain(expr, context, shape),
227227
ast::ExprKind::MacCall(ref mac) => {
228-
rewrite_macro(mac, None, context, shape, MacroPosition::Expression)
229-
.0
230-
.or_else(|| {
228+
let (rewrite, _) = rewrite_macro(mac, None, context, shape, MacroPosition::Expression);
229+
rewrite.or_else(|| {
231230
wrap_str(
232231
context.snippet(expr.span).to_owned(),
233232
context.config.max_width(),

0 commit comments

Comments
 (0)