mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 13:36:02 +01:00
style(libstore/find-cycles): use initializer list for edge construction
This commit is contained in:
parent
22e74e5f1e
commit
8f19a6cb83
1 changed files with 1 additions and 4 deletions
|
|
@ -39,10 +39,7 @@ void CycleEdgeScanSink::operator()(std::string_view data)
|
|||
// Create an edge from current file to the target
|
||||
auto targetPath = storeDir + hash;
|
||||
|
||||
StoreCycleEdge edge;
|
||||
edge.push_back(currentFilePath);
|
||||
edge.push_back(targetPath);
|
||||
edges.push_back(edge);
|
||||
edges.push_back({currentFilePath, targetPath});
|
||||
|
||||
debug("found cycle edge: %s → %s (hash: %s)", currentFilePath, targetPath, hash);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue