mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
clang-tidy fix for src/libstore/build/derivation-check.cc
This commit is contained in:
parent
7ba3ef21a6
commit
06a82da6f5
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