1
1
Fork 0
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:
Bernardo Meurer Costa 2025-10-11 19:48:40 +00:00
parent 22e74e5f1e
commit 8f19a6cb83
No known key found for this signature in database

View file

@ -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);
}