Simplify boxing Expr

This commit is contained in:
Joscha 2022-11-22 15:26:51 +01:00
parent 5a977e6dde
commit 42369628b6
16 changed files with 68 additions and 62 deletions

View file

@ -38,7 +38,7 @@ impl Call {
expr,
s0,
s1,
arg: Box::new(Expr::Lit(Lit::Nil(span))),
arg: Expr::Lit(Lit::Nil(span)).boxed(),
s2: Space::empty(span),
span,
});
@ -55,7 +55,7 @@ impl Call {
expr,
s0,
s1: Space::empty(span),
arg: Box::new(Expr::TableConstr(constr)),
arg: Expr::TableConstr(constr).boxed(),
s2: Space::empty(span),
span,
});