Formatting

This commit is contained in:
Eelco Dolstra 2024-05-03 15:41:03 +02:00
parent 20558e0462
commit ffc280f27a
2 changed files with 3 additions and 7 deletions

View file

@ -3,12 +3,10 @@
namespace nix {
ref<SourceAccessor> makeStorePathAccessor(
ref<Store> store,
const StorePath & storePath)
ref<SourceAccessor> makeStorePathAccessor(ref<Store> store, const StorePath & storePath)
{
// FIXME: should use `store->getFSAccessor()`
auto root = std::filesystem::path { store->toRealPath(storePath) };
auto root = std::filesystem::path{store->toRealPath(storePath)};
auto accessor = makeFSSourceAccessor(root);
accessor->setPathDisplay(root.string());
return accessor;

View file

@ -7,9 +7,7 @@ namespace nix {
class StorePath;
class Store;
ref<SourceAccessor> makeStorePathAccessor(
ref<Store> store,
const StorePath & storePath);
ref<SourceAccessor> makeStorePathAccessor(ref<Store> store, const StorePath & storePath);
SourcePath getUnfilteredRootPath(CanonPath path);