diff options
Diffstat (limited to 'third_party/nix/src/nix/optimise-store.cc')
-rw-r--r-- | third_party/nix/src/nix/optimise-store.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/nix/optimise-store.cc b/third_party/nix/src/nix/optimise-store.cc index 1b33ea3ec270..ceb53aa77b17 100644 --- a/third_party/nix/src/nix/optimise-store.cc +++ b/third_party/nix/src/nix/optimise-store.cc @@ -4,8 +4,7 @@ #include "libstore/store-api.hh" #include "nix/command.hh" -using namespace nix; - +namespace nix { struct CmdOptimiseStore final : StoreCommand { CmdOptimiseStore() = default; @@ -23,5 +22,6 @@ struct CmdOptimiseStore final : StoreCommand { void run(ref<Store> store) override { store->optimiseStore(); } }; +} // namespace nix -static RegisterCommand r1(make_ref<CmdOptimiseStore>()); +static nix::RegisterCommand r1(nix::make_ref<nix::CmdOptimiseStore>()); |