Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed May 3, 2024
1 parent 20558e0 commit ffc280f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/libfetchers/store-path-accessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions src/libfetchers/store-path-accessor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ffc280f

Please sign in to comment.