about summary refs log tree commit diff
path: root/third_party/nix/src/nix/edit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/edit.cc')
-rw-r--r--third_party/nix/src/nix/edit.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/nix/edit.cc b/third_party/nix/src/nix/edit.cc
index b5369e4a8a..04c67acb94 100644
--- a/third_party/nix/src/nix/edit.cc
+++ b/third_party/nix/src/nix/edit.cc
@@ -7,8 +7,7 @@
 #include "libmain/shared.hh"
 #include "nix/command.hh"
 
-using namespace nix;
-
+namespace nix {
 struct CmdEdit final : InstallableCommand {
   std::string name() override { return "edit"; }
 
@@ -71,5 +70,6 @@ struct CmdEdit final : InstallableCommand {
     throw SysError("cannot run editor '%s'", editor);
   }
 };
+}  // namespace nix
 
-static RegisterCommand r1(make_ref<CmdEdit>());
+static nix::RegisterCommand r1(nix::make_ref<nix::CmdEdit>());