diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-20T23·23+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-20T23·24+0100 |
commit | a3b48e65624bc7f4c6dac8022676ae6fcb3be4ea (patch) | |
tree | cde1d412276e6209dd7c2c00ecc7454fdc82bf41 /third_party/nix/src/libutil/args.hh | |
parent | 9dfdf16a8d5ff3107c4163ac585ec9be3a2abddb (diff) |
chore(3p/nix): Minor fixes to get rid of warnings r/791
Diffstat (limited to 'third_party/nix/src/libutil/args.hh')
-rw-r--r-- | third_party/nix/src/libutil/args.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/libutil/args.hh b/third_party/nix/src/libutil/args.hh index ba6582abe424..63637533359b 100644 --- a/third_party/nix/src/libutil/args.hh +++ b/third_party/nix/src/libutil/args.hh @@ -8,7 +8,7 @@ namespace nix { -MakeError(UsageError, Error); +MakeError(UsageError, Error) enum HashType : char; @@ -118,14 +118,14 @@ class Args { flag->arity = 1; flag->handler = [=](std::vector<std::string> ss) { *dest = ss[0]; }; return *this; - }; + } template <class T> FlagMaker& set(T* dest, const T& val) { flag->arity = 0; flag->handler = [=](std::vector<std::string> ss) { *dest = val; }; return *this; - }; + } FlagMaker& mkHashTypeFlag(HashType* ht); }; |