From 3049f31d2824b95c8a2e13c6b919847de6bd0705 Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 7 Aug 2020 15:27:27 +0000 Subject: chore(3p/nix): don't optional-wrap EvalState::file_access_trace_fn further std::function has a natural null we can't eliminate anyway, so this was effectively std::optional>. Change-Id: If99f139146021edb25d133dad7f0f6e125ef53df Reviewed-on: https://cl.tvl.fyi/c/depot/+/1688 Tested-by: BuildkiteCI Reviewed-by: kanepyork Reviewed-by: glittershark --- third_party/nix/src/libexpr/eval.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'third_party/nix/src/libexpr/eval.hh') diff --git a/third_party/nix/src/libexpr/eval.hh b/third_party/nix/src/libexpr/eval.hh index c244b6eecc73..d2ff99c9fc13 100644 --- a/third_party/nix/src/libexpr/eval.hh +++ b/third_party/nix/src/libexpr/eval.hh @@ -303,8 +303,7 @@ class EvalState : public gc { bool countCalls; - std::optional> file_access_trace_fn = - std::nullopt; + std::function file_access_trace_fn = nullptr; Path last_traced_file = ""; typedef std::map PrimOpCalls; -- cgit 1.4.1