diff options
author | Kane York <kanepyork@gmail.com> | 2020-11-28T00·31-0800 |
---|---|---|
committer | kanepyork <rikingcoding@gmail.com> | 2020-11-28T00·59+0000 |
commit | 516c046ed984ba74da9a36f21e356dae9e227ca3 (patch) | |
tree | 14daaf1ff037440025caa12ca60888b9cefbb3bb /third_party/nix/src/nix/copy.cc | |
parent | 363dbeae95ce46be2b716506de90717998391a57 (diff) |
refactor(tvix): remove all 'using namespace' from nix command r/1949
clang-tidy: google-build-using-namespace Change-Id: I07ea10b03a6d9582c0508747698038f7106e8f63 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2181 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'third_party/nix/src/nix/copy.cc')
-rw-r--r-- | third_party/nix/src/nix/copy.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/nix/copy.cc b/third_party/nix/src/nix/copy.cc index ec25d0fc5a13..75c85698d11e 100644 --- a/third_party/nix/src/nix/copy.cc +++ b/third_party/nix/src/nix/copy.cc @@ -6,8 +6,7 @@ #include "libutil/thread-pool.hh" #include "nix/command.hh" -using namespace nix; - +namespace nix { struct CmdCopy final : StorePathsCommand { std::string srcUri, dstUri; @@ -82,5 +81,6 @@ struct CmdCopy final : StorePathsCommand { NoRepair, checkSigs, substitute); } }; +} // namespace nix -static RegisterCommand r1(make_ref<CmdCopy>()); +static nix::RegisterCommand r1(nix::make_ref<nix::CmdCopy>()); |