Skip to content

Commit 0a01fc0

Browse files
committed
TweaksTweak
1 parent cbf335e commit 0a01fc0

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

lib/src/ast.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,25 +82,17 @@ pub enum ExprKind {
8282
/// Numeric literal
8383
Literal(Decimal),
8484
/// Identifier (constant or variable)
85-
Ident {
86-
name: String,
87-
},
85+
Ident { name: String },
8886
/// Unary operation
89-
Unary {
90-
op: UnOp,
91-
expr: Box<Expr>,
92-
},
87+
Unary { op: UnOp, expr: Box<Expr> },
9388
/// Binary operation
9489
Binary {
9590
op: BinOp,
9691
left: Box<Expr>,
9792
right: Box<Expr>,
9893
},
9994
/// Function call
100-
Call {
101-
name: String,
102-
args: Vec<Expr>,
103-
},
95+
Call { name: String, args: Vec<Expr> },
10496
}
10597

10698
impl Expr {

0 commit comments

Comments
 (0)