Skip to content

Commit e469bb4

Browse files
committed
fix if as subexpr
1 parent 08da30d commit e469bb4

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
@@ -696,7 +696,7 @@ impl Rewrite for ast::Stmt {
696696
};
697697

698698
let shape = shape.sub_width(suffix.len())?;
699-
format_expr(ex, ExprType::Statement, context, shape).map(|s| s + suffix)
699+
format_expr(ex, ExprType::SubExpression, context, shape).map(|s| s + suffix)
700700
}
701701
ast::StmtKind::Mac(..) | ast::StmtKind::Item(..) => None,
702702
};

0 commit comments

Comments
 (0)