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 39780532f8..da4b64fe75 100644
--- a/third_party/nix/src/nix/hash.cc
+++ b/third_party/nix/src/nix/hash.cc
@@ -14,7 +14,7 @@ struct CmdHash : Command {
   HashType ht = htSHA256;
   std::vector<std::string> paths;
 
-  CmdHash(Mode mode) : mode(mode) {
+  explicit CmdHash(Mode mode) : mode(mode) {
     mkFlag(0, "sri", "print hash in SRI format", &base, SRI);
     mkFlag(0, "base64", "print hash in base-64", &base, Base64);
     mkFlag(0, "base32", "print hash in base-32 (Nix-specific)", &base, Base32);
@@ -52,7 +52,7 @@ struct CmdToBase : Command {
   HashType ht = htUnknown;
   std::vector<std::string> args;
 
-  CmdToBase(Base base) : base(base) {
+  explicit CmdToBase(Base base) : base(base) {
     mkFlag().longName("type").mkHashTypeFlag(&ht);
     expectArgs("strings", &args);
   }