Skip to content

Commit

Permalink
julefmt: fix casting expression formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Mar 28, 2024
1 parent 6f10c7e commit d1e741d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/format.jule
Original file line number Diff line number Diff line change
Expand Up @@ -1286,9 +1286,9 @@ impl ExprFormatter {
self.write("(")
self.fmt.format_type(c.kind)
self.write(")")
self.write("(")
// Do not write parentheses for expression.
// Expression formatter will add.
self.format(c.expr)
self.write(")")
}

fn nselect(&self, ns: &ast::NsSelectionExpr) {
Expand Down

0 comments on commit d1e741d

Please sign in to comment.