diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-02-28 12:13:43 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-02-28 12:14:11 -0500 |
commit | d381248ec0847cacd918480e83a99287f814456a (patch) | |
tree | c5e5cc242a8ba61bab6a2e3339a993fd913126fc /src/libstore/path-info.cc | |
parent | 85bb865d200f04b73f183af722757c78d5a3be76 (diff) |
No inheritance for `TextInfo` and `FixedOutputInfo`
Diffstat (limited to 'src/libstore/path-info.cc')
-rw-r--r-- | src/libstore/path-info.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/path-info.cc b/src/libstore/path-info.cc index 2a03e9dfa..76cab63e0 100644 --- a/src/libstore/path-info.cc +++ b/src/libstore/path-info.cc @@ -30,7 +30,7 @@ std::optional<ContentAddressWithReferences> ValidPathInfo::contentAddressWithRef [&](const TextHash & th) -> ContentAddressWithReferences { assert(references.count(path) == 0); return TextInfo { - th, + .hash = th, .references = references, }; }, @@ -42,7 +42,7 @@ std::optional<ContentAddressWithReferences> ValidPathInfo::contentAddressWithRef refs.erase(path); } return FixedOutputInfo { - foh, + .hash = foh, .references = { .others = std::move(refs), .self = hasSelfReference, |