Simplify creating Lit
This commit is contained in:
parent
fafc567447
commit
45caafdc38
8 changed files with 38 additions and 14 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue