aboutsummaryrefslogtreecommitdiff
path: root/src/nix/add-to-store.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-19 17:42:56 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-19 17:42:56 +0000
commit911fc88bcb467ff779c5d0ab49e0a5525f284e19 (patch)
treec639f8f2398476ef66318d935de46547f2cd4904 /src/nix/add-to-store.cc
parent2f0e395c99f926b9f0a65e37ea644a40ec5dddfa (diff)
More designated initializers
Diffstat (limited to 'src/nix/add-to-store.cc')
-rw-r--r--src/nix/add-to-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc
index 6d90e93e8..f9d6de16e 100644
--- a/src/nix/add-to-store.cc
+++ b/src/nix/add-to-store.cc
@@ -49,8 +49,8 @@ struct CmdAddToStore : MixDryRun, StoreCommand
info.narHash = narHash;
info.narSize = sink.s->size();
info.ca = std::optional { FixedOutputHash {
- FileIngestionMethod::Recursive,
- info.narHash,
+ .method = FileIngestionMethod::Recursive,
+ .hash = info.narHash,
} };
if (!dryRun) {