mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Remove an unnecessary alloc()
This commit is contained in:
parent
e687b500d8
commit
eb6ec90cc6
1 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,8 @@ pub fn desugar<'a>(arena: &'a Bump, loc_expr: &'a Located<Expr<'a>>) -> &'a Loca
|
|||
expr => {
|
||||
// e.g. `1 |> (if b then (\a -> a) else (\c -> c))`
|
||||
let mut args = Vec::with_capacity_in(1, arena);
|
||||
args.push(*arena.alloc(left));
|
||||
|
||||
args.push(left);
|
||||
|
||||
let function = arena.alloc(Located {
|
||||
value: Nested(expr),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue