aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/path.cc
diff options
context:
space:
mode:
authorMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-06-01 08:59:26 -0600
committerMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-06-01 12:32:17 -0600
commitc254254a8088ca303e97b9430484cf25cf8f7806 (patch)
tree282d3a769c0c3c1c311610ff19086d3d4c246e22 /src/libfetchers/path.cc
parent768099350666f103131c59853cc7d70c0a6e19cd (diff)
use Tree ctor
Diffstat (limited to 'src/libfetchers/path.cc')
-rw-r--r--src/libfetchers/path.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libfetchers/path.cc b/src/libfetchers/path.cc
index cbbb0fa02..99d4b4e8f 100644
--- a/src/libfetchers/path.cc
+++ b/src/libfetchers/path.cc
@@ -96,10 +96,7 @@ struct PathInputScheme : InputScheme
storePath = store->addToStore("source", path);
return {
- Tree {
- .actualPath = store->toRealPath(*storePath),
- .storePath = std::move(*storePath),
- },
+ Tree(store->toRealPath(*storePath), std::move(*storePath)),
input
};
}