aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-28 11:57:20 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-02-28 11:57:20 -0500
commit85bb865d200f04b73f183af722757c78d5a3be76 (patch)
treec82b05623cf8a02f55dde43e7605aab87aa24aae /src/nix
parent123b11ff83da0cbcef6e4aae276bfbdd7a183656 (diff)
Revert "Remove some designated initializers"
This reverts commit ee9eb83a842eb97d0180fd9d349d30ff27fdb485.
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/add-to-store.cc2
-rw-r--r--src/nix/prefetch.cc2
-rw-r--r--src/nix/profile.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc
index 5de1aebfc..81dbc09a6 100644
--- a/src/nix/add-to-store.cc
+++ b/src/nix/add-to-store.cc
@@ -49,7 +49,7 @@ struct CmdAddToStore : MixDryRun, StoreCommand
.method = std::move(ingestionMethod),
.hash = std::move(hash),
},
- /* .references = */ {},
+ .references = {},
},
narHash,
};
diff --git a/src/nix/prefetch.cc b/src/nix/prefetch.cc
index bc270f66d..df9933d29 100644
--- a/src/nix/prefetch.cc
+++ b/src/nix/prefetch.cc
@@ -72,7 +72,7 @@ std::tuple<StorePath, Hash> prefetchFile(
.method = ingestionMethod,
.hash = *expectedHash,
},
- /* .references = */ {},
+ .references = {},
});
if (store->isValidPath(*storePath))
hash = expectedHash;
diff --git a/src/nix/profile.cc b/src/nix/profile.cc
index 28c7fe32d..5505d8bdd 100644
--- a/src/nix/profile.cc
+++ b/src/nix/profile.cc
@@ -207,7 +207,7 @@ struct ProfileManifest
.method = FileIngestionMethod::Recursive,
.hash = narHash,
},
- /* .references = */ {
+ .references = {
.others = std::move(references),
.self = false,
},