mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Merge pull request #14158 from fzakaria/fzakaria/small-clang-tidy-fix
clang-tidy fix for src/libstore/build/derivation-check.cc
This commit is contained in:
commit
e5ae81c21a
1 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,11 @@ void checkOutputs(
|
|||
for (auto & output : outputs)
|
||||
outputsByPath.emplace(store.printStorePath(output.second.path), output.second);
|
||||
|
||||
for (auto & [outputName, info] : outputs) {
|
||||
for (auto & pair : outputs) {
|
||||
// We can't use auto destructuring here because
|
||||
// clang-tidy seems to complain about it.
|
||||
const std::string & outputName = pair.first;
|
||||
const auto & info = pair.second;
|
||||
|
||||
auto * outputSpec = get(drvOutputs, outputName);
|
||||
assert(outputSpec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue