about summary refs log tree commit diff
path: root/third_party/nix/src/nix/upgrade-nix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/upgrade-nix.cc')
-rw-r--r--third_party/nix/src/nix/upgrade-nix.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/nix/upgrade-nix.cc b/third_party/nix/src/nix/upgrade-nix.cc
index 77e284afba2c..c7f654d64884 100644
--- a/third_party/nix/src/nix/upgrade-nix.cc
+++ b/third_party/nix/src/nix/upgrade-nix.cc
@@ -11,8 +11,7 @@
 #include "libstore/store-api.hh"
 #include "nix/command.hh"
 
-using namespace nix;
-
+namespace nix {
 struct CmdUpgradeNix final : MixDryRun, StoreCommand {
   Path profileDir;
   std::string storePathsUrl =
@@ -163,5 +162,6 @@ struct CmdUpgradeNix final : MixDryRun, StoreCommand {
     return state->forceString(*v2);
   }
 };
+}  // namespace nix
 
-static RegisterCommand r1(make_ref<CmdUpgradeNix>());
+static nix::RegisterCommand r1(nix::make_ref<nix::CmdUpgradeNix>());