From b3c9166b23aebbbfcbe65ea59e7ea18d876d45db Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 22 May 2020 16:48:30 +0100 Subject: refactor(3p/nix/libexpr): state->allocBindings -> Bindings::NewGC EvalState::allocBindings had little to do with Bindings, other than returning them, and didn't belong in that class. --- third_party/nix/src/nix-env/user-env.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'third_party/nix/src/nix-env/user-env.cc') diff --git a/third_party/nix/src/nix-env/user-env.cc b/third_party/nix/src/nix-env/user-env.cc index 1535ca0a5c..2ca56ed966 100644 --- a/third_party/nix/src/nix-env/user-env.cc +++ b/third_party/nix/src/nix-env/user-env.cc @@ -19,7 +19,7 @@ DrvInfos queryInstalled(EvalState& state, const Path& userEnv) { if (pathExists(manifestFile)) { Value v; state.evalFile(manifestFile, v); - Bindings& bindings(*state.allocBindings(0)); + Bindings& bindings(*Bindings::NewGC()); getDerivations(state, v, "", bindings, elems, false); } return elems; -- cgit 1.4.1