diff --git a/src/can/operator.rs b/src/can/operator.rs index 4a36a70fe9..fd8fff37ba 100644 --- a/src/can/operator.rs +++ b/src/can/operator.rs @@ -249,7 +249,8 @@ pub fn desugar<'a>(arena: &'a Bump, loc_expr: &'a Located>) -> &'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),