about summary refs log tree commit diff
path: root/third_party/nix/src/nix/hash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/hash.cc')
-rw-r--r--third_party/nix/src/nix/hash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/nix/hash.cc b/third_party/nix/src/nix/hash.cc
index 935faec9d5..521f97d53a 100644
--- a/third_party/nix/src/nix/hash.cc
+++ b/third_party/nix/src/nix/hash.cc
@@ -6,7 +6,7 @@
 
 using namespace nix;
 
-struct CmdHash : Command {
+struct CmdHash final : Command {
   enum Mode { mFile, mPath };
   Mode mode;
   Base base = SRI;
@@ -47,7 +47,7 @@ struct CmdHash : Command {
 static RegisterCommand r1(make_ref<CmdHash>(CmdHash::mFile));
 static RegisterCommand r2(make_ref<CmdHash>(CmdHash::mPath));
 
-struct CmdToBase : Command {
+struct CmdToBase final : Command {
   Base base;
   HashType ht = htUnknown;
   std::vector<std::string> args;