Simplify creating Lit

This commit is contained in:
Joscha 2022-11-22 16:29:31 +01:00
parent fafc567447
commit 45caafdc38
8 changed files with 38 additions and 14 deletions

View file

@ -27,8 +27,12 @@ impl Call {
value: arg,
span,
};
let new =
Lit::Table(BoundedSeparated::new(span).then(call).then(arg).table_lit()).expr();
let new = BoundedSeparated::new(span)
.then(call)
.then(arg)
.table_lit()
.lit()
.expr();
(new, true)
}