diff options
Diffstat (limited to 'third_party/nix/src/libexpr/primops.cc')
-rw-r--r-- | third_party/nix/src/libexpr/primops.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/primops.cc b/third_party/nix/src/libexpr/primops.cc index dfcfdeae431c..850d17a8f4a2 100644 --- a/third_party/nix/src/libexpr/primops.cc +++ b/third_party/nix/src/libexpr/primops.cc @@ -442,7 +442,9 @@ static void prim_genericClosure(EvalState& state, const Pos& pos, Value** args, /* Create the result list. */ state.mkList(v, res.size()); unsigned int n = 0; - for (auto& i : res) v.listElems()[n++] = i; + for (auto& i : res) { + v.listElems()[n++] = i; + } } static void prim_abort(EvalState& state, const Pos& pos, Value** args, @@ -2061,7 +2063,9 @@ static void prim_replaceStrings(EvalState& state, const Pos& pos, Value** args, } else { p += i->size(); } - for (auto& path : j->second) context.insert(path); + for (auto& path : j->second) { + context.insert(path); + } j->second.clear(); break; } |