1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 12:41:15 +02:00

Remove InputAccessor::root()

This commit is contained in:
Eelco Dolstra 2023-11-30 16:44:54 +01:00
parent 305939655a
commit 43d9fb6cf1
4 changed files with 10 additions and 13 deletions

View file

@ -424,10 +424,9 @@ public:
SourcePath path() const
{
assert(internalType == tPath);
return SourcePath {
.accessor = ref(_path.accessor->shared_from_this()),
.path = CanonPath(CanonPath::unchecked_t(), _path.path)
};
return SourcePath(
ref(_path.accessor->shared_from_this()),
CanonPath(CanonPath::unchecked_t(), _path.path));
}
std::string_view string_view() const