Skip to content

Commit 67f681f

Browse files
committed
fix if as subexpr
1 parent 34067a1 commit 67f681f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ impl Rewrite for ast::Stmt {
708708
};
709709

710710
let shape = shape.sub_width(suffix.len())?;
711-
format_expr(ex, ExprType::Statement, context, shape).map(|s| s + suffix)
711+
format_expr(ex, ExprType::SubExpression, context, shape).map(|s| s + suffix)
712712
}
713713
ast::StmtKind::Mac(..) | ast::StmtKind::Item(..) => None,
714714
};

0 commit comments

Comments
 (0)