Fix clang error

This commit is contained in:
Eelco Dolstra 2022-06-02 16:57:19 +02:00
parent 7c0f08f79b
commit f70f7db42a
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -325,7 +325,7 @@ std::pair<StorePath, Input> InputScheme::fetch(ref<Store> store, const Input & i
{
auto [accessor, input2] = lazyFetch(store, input);
auto source = sinkToSource([&](Sink & sink) {
auto source = sinkToSource([&, accessor{accessor}](Sink & sink) {
accessor->dumpPath(CanonPath::root, sink);
});