aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/misc.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-04-05 09:24:42 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-04-05 09:35:55 -0400
commit9dfb97c987d8b9d6a3d15f016e40f22f91deb764 (patch)
tree4c53fc227531604bced5575370f8406d97e79052 /src/libstore/misc.cc
parent4fe41c6db390c0295d20f6365ebedaec8ec79e1d (diff)
"newtype" BuildableReq
This makes for better types errors and allows us to give it methods.
Diffstat (limited to 'src/libstore/misc.cc')
-rw-r--r--src/libstore/misc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/misc.cc b/src/libstore/misc.cc
index e702a4f9e..abfae1502 100644
--- a/src/libstore/misc.cc
+++ b/src/libstore/misc.cc
@@ -187,7 +187,7 @@ void Store::queryMissing(const std::vector<BuildableReq> & targets,
{
auto state(state_.lock());
- if (!state->done.insert(to_string(*this, req)).second) return;
+ if (!state->done.insert(req.to_string(*this)).second) return;
}
std::visit(overloaded {
@@ -250,7 +250,7 @@ void Store::queryMissing(const std::vector<BuildableReq> & targets,
for (auto & ref : info->second.references)
pool.enqueue(std::bind(doPath, BuildableOpaque { ref }));
},
- }, req);
+ }, req.raw());
};
for (auto & path : targets)