diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-01-30 01:10:26 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-01-30 01:10:26 +0100 |
commit | ebfbfe95158fd074fa057930e1e0fb858059e358 (patch) | |
tree | 89d0ec3a226740513c7fd6daa13c8c29efe31a71 /src | |
parent | 3c54e9ba011a42c454ce401b861735a2dbee0d79 (diff) |
Use std::nullopt
Diffstat (limited to 'src')
-rw-r--r-- | src/nix/flake.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 295383681..dafd1ae7e 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -645,7 +645,7 @@ struct CmdFlakeArchive : FlakeCommand, MixJSON, MixDryRun { auto flake = lockFlake(); - auto jsonRoot = json ? std::optional<JSONObject>(std::cout) : std::optional<JSONObject>(); + auto jsonRoot = json ? std::optional<JSONObject>(std::cout) : std::nullopt; StorePathSet sources; |