mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 05:56:03 +01:00
remove unnecessary constructor argument
This commit is contained in:
parent
34f780d747
commit
67be2df174
3 changed files with 4 additions and 4 deletions
|
|
@ -551,7 +551,7 @@ public:
|
|||
std::ranges::copy(formals.formals, formalsStart);
|
||||
};
|
||||
|
||||
ExprLambda(std::pmr::polymorphic_allocator<char> & alloc, PosIdx pos, Symbol arg, Expr * body)
|
||||
ExprLambda(PosIdx pos, Symbol arg, Expr * body)
|
||||
: pos(pos)
|
||||
, arg(arg)
|
||||
, hasFormals(false)
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ expr: expr_function;
|
|||
|
||||
expr_function
|
||||
: ID ':' expr_function
|
||||
{ auto me = new ExprLambda(state->alloc, CUR_POS, state->symbols.create($1), $3);
|
||||
{ auto me = new ExprLambda(CUR_POS, state->symbols.create($1), $3);
|
||||
$$ = me;
|
||||
SET_DOC_POS(me, @1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue