From 8f19a6cb836597694e12be73fed0d63673b1e70b Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Costa Date: Sat, 11 Oct 2025 19:48:40 +0000 Subject: [PATCH] style(libstore/find-cycles): use initializer list for edge construction --- src/libstore/build/find-cycles.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libstore/build/find-cycles.cc b/src/libstore/build/find-cycles.cc index 80639c77a..7447064c1 100644 --- a/src/libstore/build/find-cycles.cc +++ b/src/libstore/build/find-cycles.cc @@ -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); }